Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to make a window fixed?

Tags:

java

window

size

Is there any way to make a window fixed so that the user can't change the window size in java?

like image 782
user187920 Avatar asked Dec 06 '22 04:12

user187920


2 Answers

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.

like image 106
coobird Avatar answered Dec 23 '22 06:12

coobird


JFrame myFrame= new JFrame();
myFrame.setResizable(false);

My solution.

like image 34
cyphrt Avatar answered Dec 23 '22 06:12

cyphrt