Question
(a) A GUI might contain text-fields, buttons, and other labels. A button frequently triggers an event on the GUI. Describe dissimilar processes in registering an event and handling the action performed by button in Java.
(b) Write down code for a GUI which will allow a user to enter two numbers and then compute the product by clicking on a button. Result is able to be displayed in a text-field or as a label on the GUI.
(c) Examine purpose and use of the Java Adapter classes. Use suitable examples to support your answer.