• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to fix a GUI size in Java

icklejez

Member
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
 
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.
 
Back
Top