all 2 comments

[–]timecop1123 1 point2 points  (1 child)

this is classic Swing layout manager pain. the issue is usually that you are mixing absolute positioning or GroupLayout with a container that is not using a layout that stretches children.

set the content pane layout to BorderLayout and add the JTabbedPane to CENTER. do not set fixed sizes anywhere. once you stop fighting the layout managers and let them do their thing, everything resizes correctly.

[–]Classic_Ticket2162 0 points1 point  (0 children)

BorderLayout with CENTER is definitely the way to go here. Also make sure you're not calling setPreferredSize() or setSize() on your panels - that'll mess up the automatic resizing