Try this...
Select all components of JFrame, right click, select 'Auto Resizing', check for both Horizontal and Vertical, close .