Hello dim_ath.
The simplest layout manager to use is FlowLayout. Also, it's up to you if you want to use a JPanel. In this simple GUI it might not be necessary, but then you must remember to assign the flow layout manager to the JFrame.

Do you want an example JFrame?