Question: Now add the capability for the GUI elements to control the actions of the program. The get methods in the GUIelement superclass will allow the
Now add the capability for the GUI elements to control the actions of the program. The "get" methods in the GUIelement superclass will allow the contents of an input box or the current status of a checkbox or radio button to be determined, which is all that is needed for those classes. But Button objects need the capability to trigger actions in a program. This will be done by implementing a Handler superclass, and then one subclass of Handler for each type of action that needs to be triggered by a button. (In real Java, Now add the capability for the GUI elements to control the actions of the program. The "get" methods in the GUIelement superclass will allow the contents of an input box or the current status of a checkbox or radio button to be determined, which is all that is needed for those classes. But Button objects need the capability to trigger actions in a program. This will be done by implementing a Handler superclass, and then one subclass of Handler for each type of action that needs to be triggered by a button. (In real Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
