This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to disable the top bar in a Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to disable the top bar in a Frame" Watch "how to disable the top bar in a Frame" New topic
Author

how to disable the top bar in a Frame

Jorge Bendahan
Ranch Hand

Joined: Apr 11, 2008
Posts: 82
Hi all, i have a little app, with an JMenuBar, i want that the JInternalFrames do not show their top bar, i managed to disable the close, minimize and maximize buttons of this bar, but i want to disable the whole thing. how can i do it.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> but i want to disable the whole thing

disable? = get rid of?

a couple of options:
Jorge Bendahan
Ranch Hand

Joined: Apr 11, 2008
Posts: 82
setNorthPane(null); --> that works ok. Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to disable the top bar in a Frame
 
Similar Threads
JDialog
enable and disable a menu item in a menu bar
How to disable IE back button.
diabling standard button + links in IE
disable CLOSE (X) button on a popup window