tags:

views:

42

answers:

2

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
haha, i was saving this method as a last resort... is there a function or anything?
i mean a function that does this directly
My last Swing coding was done in Java 1.4 - and No, there was no other way.
Scott Saunders
+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
sweet thanks.. i'll give it a try