Another Swing program demo where I have used 3 layouts to show up the demo which are BorderLayout, BoxLayout, GridLayout.
A layout container that arranges and resizes its components to fit in five regions: north, south, east, west, and center.
MVC i.e. Model-View-Controller architecture usually separates the program in three parts which are Model i.e. the code we write in the form of modules or that represents a model, View that helps in displaying data to the user in the form of GUI and Controller usually handles the user gestures carried out on the GUI.
When using MVC architecture, our view can remain the same and by changing the Model it reflects the view with the help of the controller i.e. user interaction.