Q. 63 What is the preferred way to handle an object's events in Java 2?
(a) Override the object's handleEvent( ) method.
(b) Add one or more event listeners to handle the events.
(c) Have the object override its processEvent() methods
(d) Have the object override its dispatchEvent() methods.
Answers
Answered by
0
Answer:
- EVENT HANDLING MODEL. GUIs are event driven (i.e. they generate events when the user of the program interacts with the GUI). Some common interactions are moving the mouse, clicking the mouse, clicking a button, typing in a text field, selecting an item from a menu, closing a window etc.
Explanation:
please mark as brainliest answer
Answered by
1
Answer:
Correct option is (a) and (b)
Override the object's handleEvent( ) method. Add one or more event listeners to handle the events.
Please follow me
And mark me a Brainliest
Similar questions