Duplicate :
|
Unable to prevent resizing. According to the JDK1.1beta3 documentation, the following frame should not be able to be resized because of the setResizable method, but it is resizable. import java.awt.Frame; class setResizableError { setResizableError() { } public static void main(String args[]) { Frame my_Frame = new Frame(); my_Frame.setSize(541, 758); boolean resize_Variable = false; my_Frame.setResizable(resize_Variable); my_Frame.pack(); my_Frame.show(); } }