aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 792
    
    2

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to prevent a frame from being maximized
 
Similar Threads
FullScreen in JFrame in jdk 1.2
Windows operations
JFrame always on top
dynamic positioning
Regarding JFrame maximise and minimise