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