Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to restrict window resizing ?

Status
Not open for further replies.

mfalomir

Technical User
Feb 6, 2003
78
0
0
MX
I have a Java app, but every time I resize the window my components ends in different places :) Is there a way to restrict window resizing ? ( Im using JFrame )

Thanks in advanace!
 
Nevermind..I just went throught the API and found the setResizable method :)

Thanks
 
Bear in mind that not allowing resizing on your app is very annoying. What happens if you have a user on a low resolution screen who needs to resize your app ?
Its better to fix your layout problems rather than hacking around it to cover up the problems !

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top