Escolar Documentos
Profissional Documentos
Cultura Documentos
WindowListener MouseListener
User moves the mouse over a component MouseMotionListener ComponentListener FocusListener ListSelectionListener
See:
http://java.sun.com/docs/books/tutorial/uiswing/events/eventsandcomponents.html
Getting event information Low-level events Semantic events Adapters for event handling Inner classes for event handling
Semantic events
everything else! e.g. action, item, list selection trigger can differ by component
e.g. button click and textfield return action events
Compound components
eg combo box - no real way of guaranteeing low level listeners on all look and feel specific components used to form the compound component.
Alternative.
Potential problems
Deadlock the application if access any realised swing components from non event threads.
Threads
Components
Loads to choose from
Layout Managers
Educated Trial and Error