Usefull Resource About Java GUI
https://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html#box This video mention about type of layout manager in java. However code in this video use java applet which is not use for java front end anymore. So just watch this video to understand about layout manager. To use the code in the video, you need to add some change to the code.