Toolkit tk = Toolkit.getDefaultToolkit(); tk.addAWTEventListener(this, AWTEvent.COMPONENT_EVENT_MASK);
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); }