swing disable window resize code example Example: how to make a window not resizeable in JFrame setResizable(false);