Making a Frame Non-Resizable: use setResizable(false) to freeze a frame's size.
import java.awt.Frame; public class Main { public static void main() { Frame frame = new Frame(); frame.setResizable(false); boolean resizable = frame.isResizable(); } }