Java Event Handling
Tests knowledge of different event types in Java's event handling framework including ActionEvent, FocusEvent, KeyEvent, MouseEvent, ItemEvent, TextEvent, ContainerEvent, PaintEvent, and AdjustmentEvent.
Questions
Which of the following objects in the java.util.EventObject is generated when scroll bars and other adjustable elements are used?
- ActionEvent
- AdjustmentEvent
- MouseEvent
- The StackFrame
- Events
Which of the following objects in the java.util.EventObject is generated when components are added to or removed from a container?
- Stock
- Transaction
- ActionEvent
- MouseEvent
- ContainerEvent
Which of the following objects in the java.util.EventObject is generated when a component is activated?
- Optimized method invocations
- ActionEvent
- MouseEvent
- KeyEvent
- Event
Which of the following objects in the java.util.EventObject is generated when a component receives focus for input?
- MouseEvent
- ActionEvent
- Events
- FocusEvent
- AlarmPresentation
Which of the following objects in the java.util.EventObject is generated when a component is painted?
- PaintEvent
- Events
- MouseEvent
- ActionEvent
- Stock
Which of the following objects in the java.util.EventObject is generated when a key on the keyboard is pressed?
- Events
- MouseEvent
- KeyEvent
- ActionEvent
- Stock
Which of the following objects in the java.util.EventObject is generated when an item from a list, a choice or a checkbox is selected?
- ItemEvent
- StockPresentation
- The stackframe
- MouseEvent
- ActionEvent
Which of the following distributed objects belongs to the distributed stock application and represents the alarm set by the user?
- AlarmPresentation
- Alarm
- Stock
- StockPresentation
- Query
Which of the following objects in the java.util.EventObject is generated when the text of a text component is modified?
- ActionEvent
- TextEvent
- Events
- Stock
- MouseEvent