Question: Lab 5.1 A GUI Component Interface (GUIComponent) Code an interface named GUIComponent specifying three methods: a void-returning method named display that accepts no parameters a
Lab 5.1 A GUI Component Interface (GUIComponent)
Code an interface named GUIComponent specifying three methods:
a void-returning method named display that accepts no parameters
a void returning method named setVisible that accepts a boolean
a boolean returning method named isVisible that that accept no parameters
I am providing both an application class (that tests the interface), as well as a minimal class MinGUIComponen) that implements this interface. This minimal GUI component displays nothing when visibility is off and a simply fixed size box when it's on. Sample Test Run
The output of my application class using MinGUIComponent is:
Creating a MinGUIComponent and displaying -- initial state -- visible=false Setting visible to true and displaying ... . . ...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
