How to make swing component auto-resizable when JFrame resize?
To make swing components auto resizable you may use the layout managers provided in Java. Such as BorderLayout, GridLayout, etc. or you may create your own layout manager i.e custom layout. With the predefined layouts such as BorderLayout you can use some static fields for example, EAST, WEST, NORTH, SOUTH etc that specifies the component's position on the container.
To read more in detail you may go through the link below :