Click to See Complete Forum and Search --> : setting size in java gui


MadNewbie
01-19-2005, 01:09 PM
Hi I just wondered if anyone had some insight on how I can control the size of my GUI.

setSize() and setPreferedSize() doesn't seem to do anything for me when I try to use them on the Container of the JFrame objects.

However I am able to use these functions properly on other containers like buttons and textarea's.

And btw is there a way to lock the main window in a program to a set size?(After I get the size to work properly ofcourse).



MadNewbie

madcompnerd
01-19-2005, 04:58 PM
If you're sizing a window it's probably the window manager telling it no.
I don't remember what JFrame was for, it's been a long time since I've touched swing.