Java events interview questions
<<Previous
Next>>
Explain the purpose of Event object.
EventObjects represent events. Applications subclass this class to add event
specific information...............
Read answer
An action event is a semantic event which indicates that a component-defined
action occured. The ActionListener interface gets this ActionEvent when the
event occurs.............
Read answer
The different kinds of event listeners are: WindowEvent, ActionEvent,
PaintEvent, ComponentEvent............
Read
answer
Usually adapter classes ease the programmers by providing implementations of the
listener interfaces instead of having to implement them................
Read
answer
Clipping is the process of confining paint operations to a limited area or
shape..............
Read answer
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.............
Read answer
The paint() method is called when some action is performed on the
window.................
Read
answer
When you register a listener, enableEvents() is called. So you don’t have to do
this separately. However, there could be situations where you need an object to
handle its own events................
Read
answer
A Scrollbar is a Component.
Scrollpane is a Container. It can handle its own events and perform it's own
scrolling..................
Read
answer
|