this.glassPane = glassPane; this.action = action; this.listeners = new ArrayList();
if (listener != null) listeners.add(listener);
Iterator it = listeners.iterator(); while (it.hasNext()) { ((GhostDropListener) it.next()).ghostDropped(evt); }
if (listener != null) listeners.remove(listener);