What are listeners in java and explain ?
Answers were Sorted based on User's Feedback
Answer / raman
A listener is called when the user does something to the user
interface that causes an event. Altho these events usually
come from the user interface.
Named Inner Class Listeners -
Anonymous Inner Class Listeners -
Top-level Listeners -
Action and AbstractAction -
External Listeners -
Subclassing a component and overriding processActionEvent().
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / raman
Twelve types of event are used in Java AWT. These are as
follows :
1. ActionEvent
2. AdjustmentEvent
3. ComponentEvent
4. ContainerEvent
5. FocusEvent
6. InputEvent
7. ItemEvent
8. KeyEvent
9. MouseEvent
10. PaintEvent
11. TextEvent
12. WindowEvent
| Is This Answer Correct ? | 0 Yes | 2 No |
What is the use of :: in java?
What is ‘is-a ‘ relationship in java?
When we give defination of interface method in the class why method must be public???
Is JRE required to compile Java files ?
what is difference between throw and throws in exception?
How many functional interfaces does java 8 have?
What is the destroy method?
Is it possible to use string in the switch case?
What is the difference between equals() and == in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Can we execute a program without main?
1.what is the exact difference between applet and frame? 2.Do we use main method in frames?