Define an interface GUIComponent consisting of four method declaration: open: void-returning, accepts no parameters close: both accepts no parameters, return boolean indicating whether or not the component is willing to be closed at that point (for example, a text window might have unsaved data and should not be closed) resize: void-returning accepts new width and height (integers ) in that order move: void returning, accepts new x and y positions (in that order)respectively
LANGUAGE: JAVA
CHALLENGE:
Define an interface GUIComponent consisting of four method declaration:
open: void-returning, accepts no parameters
close: both accepts no parameters, return boolean indicating whether or not the component is willing to be closed at that point (for example, a text window might have unsaved data and should not be closed)
resize: void-returning accepts new width and height (integers ) in that order
move: void returning, accepts new x and y positions (in that order)respectively
SOLUTION:
The Bad News: The content you are trying to access is only available to members.
The Good News: You too can be a member, simply Click Here.
Already a member? Log In Here
Posted in Java, Learn To Code