Is there any way to make a window fixed so that the user can't change the window size in java?
A:
You can listen for changes to the window size, then change the size back to what you want.
Scott Saunders
2009-12-03 14:17:20
haha, i was saving this method as a last resort... is there a function or anything?
2009-12-03 14:18:43
i mean a function that does this directly
2009-12-03 14:19:16
My last Swing coding was done in Java 1.4 - and No, there was no other way.
Scott Saunders
2009-12-03 14:20:10
+4
A:
The Frame
class (and its child JFrame
class for Swing) there is a setResizable
method which will set whether or not a Frame
can be resized or not.
coobird
2009-12-03 14:18:28