Search your topic in Java2share
Home > FAQs
eXTReMe Tracker


CoreJava FAQs


Untitled Document

Q133. What is the highest-level event class of the eventdelegation model?
The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.

Q134. What event results from the clicking of a button?
The ActionEvent event is generated as the result of the clicking of a button.

Q135. How can a GUI component handle its own events?
A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.

Q136. What is the difference between a while statement and a do statement?
A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.