my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes How to prevent a frame from being maximized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to prevent a frame from being maximized " Watch "How to prevent a frame from being maximized " New topic
Author

How to prevent a frame from being maximized

Richards Milan
Greenhorn

Joined: Jun 24, 2012
Posts: 29

I dont want the size of my application to be changed that is I dont want my app to be maximized . Which method should I use to achieve this ??


Do you know why Java programmers wear specs ? Its because they don't 'C#'
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

If you just checked the API, you would have found the answer much faster than posting it here. There is a method frame.setResizable(false); that does the job.


The quieter you are, the more you are able to hear.
Richards Milan
Greenhorn

Joined: Jun 24, 2012
Posts: 29

Thank you again Kemal Yes surely I ll check out the API doc before posting
 
wood burning stoves
 
subject: How to prevent a frame from being maximized
 
Similar Threads
FullScreen in JFrame in jdk 1.2
Windows operations
dynamic positioning
JFrame always on top
Regarding JFrame maximise and minimise