Chapter 11 Flashcards
1
Q
What are events
A
GUI generates events when the user interact with GUI
2
Q
Does events are represented by objects in Java
A
Yes
3
Q
Does all GUI packages generates events
A
No
4
Q
What is event delegation model
A
Processing of an event is delegated to a particular object (handler) in the program
5
Q
What are event generators
A
- Mouse
- Button
- Key
- Window, etc
6
Q
What are steps for event handling
A
Event generation
Event handler
Connection between handler and generator (listener)
7
Q
What is package file of events for awt
A
java.awt.event.*
8
Q
What getText() and setText() methods do
A
- Get text
- Set text string to the field