Java Swing Making Window Not Resizable

JFrame frame = new JFrame();

frame.setResizable(false);
Comfortable Caterpillar