Introduction
Description
Description
Declaration public class EventObject extends Object implements Serializable
An event initially generates an object called protected Object source.
Description
Description public interface EventListener
| EventClass | Source | Listener Interface | Description |
|---|---|---|---|
| ActionEvent | Button,List,MenuItem,Textfield | ActionListener | Created when a button is pressed, menu-item gets selected when list-item is double clicked |
| MouseEvent | Mouse related event | MouseListener | Created when the mouse is clicked, dragged, or released |
| FocusEvent | Component | FocusListener | Created when a component lose or gain keyboard focus. |
| ItemEvent | CheckBox,CheckboxMenuItem,Choice,List | ItemListener | Created when list-item or checkbox is pressed. |
| KeyEvent | Input from keyboard | KeyListener | Created when a input is given from the keyboard. |
| TextEvent | Text Component | TextListener | Created when the textarea or textfield value is changed. |
| WindowEvent | Window | WindowListener | Created when window is opened, closed, activated or iconified. |
| ComponentEvent | Component | ComponentEventListener | Created when a component is moved, set visible, or hidden. |
| ContainerEvent | Component | ContainerListener | Created when a component is added or removed to/from the container. |
| AdjustmentEvent | Adjustable | AdjustmentListener | Created when the scroll bar is accessed. |
Description
Description | Adapter Class | Listener Interface |
|---|---|
| WindowAdapter | WindowListener |
| ComponentAdapter | ComponentListener |
| ContainerAdapter | ContainerListener |
| KeyAdapter | KeyListener |
| MouseAdapter | MouseListener |
| MouseMotionAdapter | MouseMotionListener |
| FocusAdapter | FocusListener |
Examples
Key Points
Programming
Tips