@ Override protected void preparePaintComponent ( final Request request ) { super . preparePaintComponent ( request ) ; if ( ! isInitialised ( ) ) { setInitialised ( true ) ; setTreeModel ( new MenuTreeModel ( data ) ) ; } }
Set the tree model on first use .