This class contains series protected listener arrays
Java Swing - O’Reilly
Add or remove a listener for AWT ActionEvents from the monitor.
public static addContainerListener(ContainerListener l) public static removeContainerListener(ContainerListener l)
Add or remove a listener for AWT ContainerEvents from the monitor.
public static addKeyListener(KeyListener l) public static removeKeyListener(KeyListener l)
Add or remove a listener for AWT KeyEvents from the monitor.
public static addTextListener(TextListener l) public static removeTextListener(TextListener l)
Add or remove a listener for AWT TextEvents from the monitor.
25.5.3 The SwingEventMonitor Class
The SwingEventMonitor extends the AWTEventMonitor class and provides
event registration for all Swing events as well. This class contains a
series of protected listener arrays, and allows applications to register
listeners for any and all AWT and Swing events that pass through the
event queue. Note that SwingEventMonitor contains all the functionality
of AWTEventMonitor; use this class to gain access to both types of
windowing events.
25.5.3.1 Fields
protected static EventListenerList listenerList
Stores all the listeners registered by other classes. The event
monitor's add and remove methods are the only public means for modifying
this list.
public static addCellEditorListener(CellEditorListener l) public static removeCellEditorListener(CellEditorListener l) Add or remove a listener for Swing CellEditorEvents.
public static addChangeListener(ChangeListener l) public static removeChangeListener(ChangeListener l) Add or remove a listener for Swing ChangeEvents.
Add or remove a listener for Swing TableColumnModelEvents.
public static addDocumentListener(DocumentListener l) public static removeDocumentListener(DocumentListener l)
Add or remove a listener for Swing ListSelectionEvents.
public static addMenuListener(MenuListener l) public static removeMenuListener(MenuListener l)
Add or remove a listener for PropertyChangeEvents.
public static addTableModelListener(TableModelListener l) public static removeTableModelListener(TableModelListener l)
Add or remove a listener for Swing TreeModelEvents.
public static addTreeSelectionListener(TreeSelectionListener l) public static removeTreeSelectionListener(TreeSelectionListener l)
Add or remove a listener for Swing UndoableEditEvents.
public static addVetoableChangeListener(VetoableChangeListener l) public static removeVetoableChangeListener(VetoableChangeListener l)
public abstract void topLevelWindowCreated(Window w)
Invoked when a top-level window has been created.
25.5.5.1 Method
public void guiInitialized()
Java Swing - O’Reilly
25.6 Interfacing with Accessibility
AssistiveExample.java
//
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.accessibility.*;
import com.sun.java.accessibility.util.*;
public AssistiveExample() {
frame = new JFrame("Assistive Example");