Windows on the desktop are just one of many objects used in a graphical user interface (GUI)– buttons, drop-down list boxes, pop-up menus, are just some of the many others. Regardless of their particular appearance, tasks, and structure, all such GUI components share some common functionality– which is handled in a manner unique to the actual component. Define an interface, GUIComponent, with the following methods: – onClick– void-returning and accepts a single integer parameter -onCursorFocus–void-returning and accept no parameters -move — 2 overloaded methods: both boolean -returning; one accepts a pair of integer parameters; the second a single parameter of type Position-resize– 2 overloaded methods; both boolean -returning; one accepts a pair of integer parameters; the second a single parameter of type Dimension

Windows on the desktop are just one of many objects used in a graphical user interface (GUI)– buttons, drop-down list boxes, pop-up menus, are just some of the many others. Regardless of their particular appearance, tasks, and structure, all such GUI components share some common functionality– which is handled in a manner unique to the actual component. Define an interface, GUIComponent, with the following methods: – onClick– void-returning and accepts a single integer parameter -onCursorFocus–void-returning and accept no parameters -move — 2 overloaded methods: both boolean -returning; one accepts a pair of integer parameters; the second a single parameter of type Position-resize– 2 overloaded methods; both boolean -returning; one accepts a pair of integer  parameters; the second a single parameter of type Dimension

LANGUAGE: JAVA

CHALLENGE:

Windows on the desktop are just one of many objects used in a graphical user interface (GUI)– buttons, drop-down list boxes, pop-up menus, are just some of the many others. Regardless of their particular appearance, tasks, and structure, all such GUI components share some common functionality– which is handled in a manner unique to the actual component. Define an interface, GUIComponent, with the following methods: – onClick– void-returning and accepts a single integer parameter -onCursorFocus–void-returning and accept no parameters -move — 2 overloaded methods: both boolean -returning; one accepts a pair of integer parameters; the second a single parameter of type Position-resize– 2 overloaded methods; both boolean -returning; one accepts a pair of integer parameters; the second a single parameter of type Dimension

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level