question: public void remove ( MenuComponent m ) { if ( m == null ) { return ; } synchronized ( getTreeLock ( ) ) { if ( m == menuBar ) { menuBar = null ; FramePeer peer = ( FramePeer ) this . peer ; if ( peer != null ) { mbManagement = true ; invalidateIfValid ( ) ; peer . setMenuBar ( null ) ; m . removeNotify ( ) ; } m . parent = null ; } else { super . remove ( m ) ; } } }
target:  Removes the specified menu bar from this frame.