jpanel make not resizable code example Example: how to make jpanel not resizable yourFrame.setResizable(false);