开发者

Is there any way to make a window fixed?

开发者 https://www.devze.com 2022-12-13 07:52 出处:网络
Is there any way to make a window 开发者_如何转开发fixed so that the user can\'t change the window size in java?The Frame class (and its child JFrame class for Swing) there is a setResizable method wh

Is there any way to make a window 开发者_如何转开发fixed so that the user can't change the window size in java?


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.


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

My solution.


In the Frame class, there is a setResizable method which will set whether or not a Frame can be resized or not. So, if you want to fixed window than just write setResizable(false).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号