T10 - GUI Flashcards

1
Q

Which object generates events? Which object processes events?

A

Event sources such as buttons generate events
Event listeners listens for when the event is generated
Event Handler processes the event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between mouseClicked and mousePressed?

A

mouse button is pressed, mousePressed event occurs.
Mouse button is pressed
and then released, mouseClicked event occurs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the purpose of a GUI

A

AIM: provide a user interface
• Accepting and editing user inputs
• Produce outputs
• Meets user needs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the difference between Event listener and Handler

A

Event Listener: Computer program that waits for an event to occur
Once an event is trigger the listener will notify the handler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly