FileDocCategorySizeDatePackage
ComponentMap.javaAPI DocExample753Mon Jan 09 11:02:02 GMT 2006None

ComponentMap

public class ComponentMap extends HashMap implements AWTEventListener

Fields Summary
Constructors Summary
public ComponentMap()

        Toolkit tk = Toolkit.getDefaultToolkit();
        tk.addAWTEventListener(this,
            AWTEvent.COMPONENT_EVENT_MASK);
    
Methods Summary
public voideventDispatched(java.awt.AWTEvent evt)

        try {
            // p("evt = " + evt);
            ComponentEvent ce = (ComponentEvent)evt;
            // p("storing component: " + ce.getComponent().getName());
            this.put(
                ce.getComponent().getName(),
                ce.getComponent()
                );
        } catch (Exception ex) {
            // p("ex: " + ex);
        }