+ 2

Java final size of frame

How to set the final values so that the user can not change the dimension of the window (max size) ? frame.setPreferredSize(new Dimension(600, 800)); frame.setMinimumSize(new Dimension(600, 800));

28th Jun 2018, 2:44 PM
Daniel (kabura)
Daniel (kabura) - avatar
2 odpowiedzi
+ 3
If I remember clearly it has something to do with. frame.setResizable(false);
28th Jun 2018, 3:39 PM
Andre Daniel
Andre Daniel - avatar
+ 3
thx i remember now isResizable public boolean isResizable() Indicates whether this frame is resizable by the user. By default, all frames are initially resizable. Returns:true if the user can resize this frame; false otherwise.See Also:setResizable(boolean)
28th Jun 2018, 4:15 PM
Daniel (kabura)
Daniel (kabura) - avatar