public JBasePanel getToolbarParent ( ) { JBasePanel parent = ( JBasePanel ) this . getTargetScreen ( JBasePanel . class ) ; if ( parent == null ) if ( m_parent instanceof JBasePanel ) parent = ( JBasePanel ) m_parent ; if ( parent == null ) return this ; return parent . getToolbarParent ( ) ; }
Get the highest level parent that is a JBasePanel . This is where a toolbar or menubar should be added .