Question :
Suppose you are to implement the GUI displayed on the right, where the relative position of all Swing elements must remain as shown when the window is resized. The user can enter text in the message area and send it by pressing the button. All sent messages appear in the chat log area.
(a) Draw a diagram that shows the different Swing components and layout managers you would use, and how they are organized together.
(b) Describe precisely, in terms of the model-view-controller pattern, what happens when the user enters a new text in the message area and presses the
Send button. You should model your answer after the Currency Calculator example (oniLearn), listingall key stepsandinteractions.