Start by looking at the tutorial on how to build a Swing GUI:
https://docs.oracle.com/javase/tutorial/uiswing/index.html

Change the code to use a layout manager vs using setBounds for all of the...