+ 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));
2 odpowiedzi
+ 3
If I remember clearly it has something to do with.
frame.setResizable(false);
+ 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)