Re: [ANSWER] How to get rid of the menubar, buttonbar and statusbar
Miguel De Anda <[email protected]> Tue, 22 Jul 2008 12:27:42 -0700
| Newsgroups | gmane.comp.mozilla.jrex |
|---|---|
| Message-ID | <[email protected]> |
A. Torras wrote: > Hi, > = > If you want to remove all those annoying "dressings" you can do it: > = > jrCanvas =3D ( (JRexCanvas) jrWinManager.getBrowserForRootParent( > jFrame.getRootPane() ).next() ); > = > jFrame.setVisible( false ); > // Eliminar buttonbar > ((JPanel) jFrame.getRootPane().getComponent( 3 )).remove(1); > // Eliminar men=FA > ((JPanel) jFrame.getRootPane().getComponent( 3 )).remove(0); > // Eliminar statusbar > jFrame.getRootPane().remove( 4 ); > jFrame.setVisible( true ); > = > = > I hope this fix can save someone's time :-) > = > -- > Alejandro Torras > http://www.dynamic-interactive.com thanks for the hint. when added to a panel, this works too: winManager.init(panel); //remove status panel.remove(2); //remove toolbar with navigation panel.remove(1);