How to fix a GUI size in Java

icklejez

Member
Jan 12, 2007
50
0
0
Just wondering how i can stop a user resizing the window using java, i declare the frame size, but dont know how to set it to fixed...

setTitle("Stock Control System");
setSize(560,640);

setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);

cheers
 

Pwnbroker

Senior member
Feb 9, 2007
245
0
0
I know on a JFrame, there is an attribute called resizable, and it's a bool, should you be using another type of container, it should have the same attribute.