1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
avanturin [10]
2 years ago
7

Windows on the desktop are just one of many objects used in a graphical user interface (GUI)-- buttons, drop-down list boxes, po

p-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 accepts a single integer parameter
move -- 3 overloaded methods: all boolean-returning; one accepts a pair of integer parameters; the second a single parameter of type Position; the third a single parameter of type Dimension
resize-- boolean-returning and accepts a pair of integer parameters
Computers and Technology
1 answer:
anastassius [24]2 years ago
8 0

Answer:

The GUI component is defined as follows

abstract interface GUIComponent {

public abstract void onClick(int a);

public abstract void onCursorFocus(int a);

public abstract boolean move(int a, int b);

public abstract boolean move(Position a);

public abstract boolean move(Dimension a);

public abstract boolean resize(int a, int b);

}

Explanation:

Here the first line is the definition of the interface GUIComponent with the type abstract.

The second line is the public abstract with no return onClick function for int a.

The third line is the public abstract with no return onClickFocus function for int a.

The fourth line is the public abstract with boolean return moving the cursor to int a and int b.

The fifth line is the public abstract with boolean return moving the cursor to Position a.

The sixth line is the public abstract with boolean return dimensioning the cursor to Position a.

The seventh line is the public abstract with boolean return resizing to int a and int b.

You might be interested in
Technician A says that the TP sensor signal voltage should be about 0.5 volt at idle and increase to about 2.5 volts at wide-ope
swat32

Answer:

Both are right.

Explanation:

4 0
3 years ago
Prepare a document to list down at least 10 features/operations (on process and thread) you can do using Process Explorer.
leonid [27]

Answer:

The operations that can be carried out using process explorer include but are not limited to:

Explanation:

  1. Killing a Process Tree
  2. Ending or terminating a process
  3. Suspending a process
  4. Examining which process has locked a file
  5. Manually detecting a virus
  6. Unhiding a process. This can help to callup the window for a process that is not visible under normal explorer activities
  7. Monitor CPU usage
  8. setting the priority of a process
  9. changing a service process's access security
  10. Monitoring Graphics Processing Unit

Cheers

6 0
2 years ago
You are responsible for tech support at your company. You have been instructed to make certain that all desktops support file an
lesya692 [45]

Answer:

The file system that we shall choose is NTFS file system.

Explanation:

NTFS file system is a file system developed by Microsoft that provides file system encryption. Encryption means to secure our data in such a way such that only authorized person's can have access to it. NTFS file system allows to encrypt data so that all our data is safe from various cyber related thefts thus making our system and data safe from vulnerability of theft.

Encryption does not prevent access to data but the data that is accessed by various agents remains meaningless to all the agents until the user of the data decrypts it.

3 0
3 years ago
How many times is the text "Let's have fun with Java." printed when this code snippet is run? int i = 0; do { System.out.println
mash [69]

Answer:

The above code print the text at three times.

Explanation:

  • It is because the above code has one loop which executes three times. The loop executes for the value of i = 0,1 and 10.
  • when the value of i is 0 then "++i" will increase the value 1 and the text will be printed.
  • If the value of i=1, then the value of i is 2 in the second iteration and the again the text is printed, then the if condition gives the true result and the value of i will be 10.
  • Then the loop executes for the last time when the value of i is 10.Then the value will be 11 because of the increment operator and the text will be printed for the third time.
  • Then the while loop is not true for the 11 value of i and the loop will get terminated.
8 0
3 years ago
Which statements describe global information systems (gis)? measures sound underwater tracks the speed of airplanes collects dat
zheka24 [161]
I think the correct answer from the choices listed above is the second option. Global information systems (GIS) can be used to create emergency plans in the event of natural disasters. Hope this answers the question. Have a nice day.
3 0
2 years ago
Read 2 more answers
Other questions:
  • You are a project manager tasked to implement a critical application in a reputed bank. A client review indicates that you could
    11·2 answers
  • 1) which colour filter is used to pumps up black and white effects?
    13·1 answer
  • To what would you compare the transport layer?
    14·1 answer
  • As Juan sat in his biology lab, his instructor was droning on about the techniques of vivisection. Juan kept thinking about the
    5·1 answer
  • Dereck works for long hours on his computer. He frequently experiences physical strain by the end of the day because he does not
    8·2 answers
  • State the difference between = and ==
    9·1 answer
  • A bastion host allows the firewall to connect to the internal network and the perimeter network.TrueFalse
    15·1 answer
  • Williams Bros. Appliances
    12·1 answer
  • How did transistors revolutionize the world of computers?
    15·1 answer
  • Choose the response that best completes the following statement.
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!