Hide menu bar and title bar in a JFrame
843805Mar 30 2007 — edited Mar 30 2007Hi!
I'm using a JFrame for a kind of viewer application. I start it as normal, so the JFrame has a JMenuBar with menus and the title bar with the application name.
So far, all right, but at some point I would like to press a JButton to make the viewer application full screen, that is, hiding the window title bar and the JMenuBar.
Any idea?
PD: I've tried the method myJMenuBar.setVisible(false) in order to hide the menu bar, but it seems it doesn't work because I'm using the Look&Feel Metal with border decorations.