It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes How to hide the minimize and maximize button of a frame? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to hide the minimize and maximize button of a frame?" Watch "How to hide the minimize and maximize button of a frame?" New topic
Author

How to hide the minimize and maximize button of a frame?

mani senthil
Greenhorn

Joined: Jan 18, 2007
Posts: 17
Hi friends
i need to create dialog box without having any controls on the title bar of the frame. which function do i use for that.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

You are asking multiple questions which are a bit confusing.

Your title says hide maximize and minimize buttons in a frame.
Then you mention a dialog box without any controls.

Which one of it is it?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
mani senthil
Greenhorn

Joined: Jan 18, 2007
Posts: 17
Maneesh Godbole wrote:You are asking multiple questions which are a bit confusing.

Your title says hide maximize and minimize buttons in a frame.
Then you mention a dialog box without any controls.

Which one of it is it?


the first one is what i need.
binayakumar patel
Greenhorn

Joined: Jun 26, 2009
Posts: 27
Hi Mani,

In JFrame you can disable the Resize button as well as the Close button but can not override the minimize button.
We can not hide these 3 buttons also.

To disable the Resize Button and Close button , you have to write below code.


If you want to Hide the Minimize Button and Resize Button then in place of JFrame use JDialog, It will show only the close button.
and to Disable the Close Button use the above code...


If you want to hide all these 3 button present in Title bar then use Window Class



Regards
Binaya
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

You mean JWindow of course

You can also use an undecorated (hint: look for that word in the API) JFrame.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to hide the minimize and maximize button of a frame?
 
Similar Threads
JInternalFrame Problems
Frames in HTML
accessing frame contents
How to show Modelless Frame
manipulating frames