Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hide menu bar and title bar in a JFrame

843805Mar 30 2007 — edited Mar 30 2007
Hi!
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 30 2007
3 comments
816 views