|
|
|
|
|
|
Summary:
|
|
|
Events that are handled | Name of Interface |
---|---|
User clicks a button, presses the RETURN key in a text field, or chooses a menu item | ActionListener |
User moves mouse into/out of a component, presses a mouse button while the cursor is over a component | MouseListener |
User closes a frame (main window) | WindowListener |
User moves the mouse over a component | MouseMotionListener |
Component becomes visible | ComponentListener |
Component gets the keyboard focus | FocusListener |
Table or list selection changes | ListSelectionListener |
I have highlighted the interfaces ActionListener and MouseListener because I will discuss these in this webpage
Java programming note:
|
|
I will discuss how to use them next....