Java Events Interview Questions and Answers

Purpose of Event object - EventObjects represent events. Applications subclass this class to add event specific information...
What is an action event? - An action event is a semantic event which indicates that a component-defined action occured...
Different kinds of event listeners - The different kinds of event listeners are: WindowEvent, ActionEvent, PaintEvent...
Event adapter class - Usually adapter classes ease the programmers by providing implementations of the listener interfaces instead of having to implement them...
Clipping and repainting - Clipping is the process of confining paint operations to a limited area or shape...
Event-listener interface and an event-adapter class - When you declare to implement an event listener, then you should write the definitions of all the methods that have been declared in the interface...
paint() and repaint() methods - The paint() method is called when some action is performed on the window...
Purpose of the enableEvents() method - When you register a listener, enableEvents() is called. So you don’t have to do this separately...
Scrollbar and a ScrollPane - A Scrollbar is a Component. Scrollpane is a Container...