Package java.awt

Examples of java.awt.Component.removeComponentListener()


  }

  @Override
  public void componentShown(ComponentEvent e) {
    Component c = e.getComponent();
    c.removeComponentListener(this); // we are already in EDT
    disposedWindows.remove(c);
  }
}
View Full Code Here


    }

    void removeListeners(Component ancestor) {
        Component a;
        for (a = ancestor; a != null; a = a.getParent()) {
            a.removeComponentListener(this);
            if (a instanceof JComponent) {
                JComponent jAncestor = (JComponent)a;
                jAncestor.removePropertyChangeListener(this);
            }
            if (a == firstInvisibleAncestor || a instanceof Window) {
View Full Code Here

    }

    void removeListeners(Component ancestor) {
  Component a;
  for (a = ancestor; a != null; a = a.getParent()) {
      a.removeComponentListener(this);
      if (a instanceof JComponent) {
    JComponent jAncestor = (JComponent)a;
    jAncestor.removePropertyChangeListener(this);
      }
      if (a == firstInvisibleAncestor || a instanceof Window) {
View Full Code Here

    this.disposedWindows = disposedWindows;
  }

  @Override public void componentShown(ComponentEvent e) {
    Component c = e.getComponent();
    c.removeComponentListener(this); // we are already in EDT
    disposedWindows.remove(c);
  }
}
View Full Code Here

    }

    void removeListeners(Component ancestor) {
        Component a;
        for (a = ancestor; a != null; a = a.getParent()) {
            a.removeComponentListener(this);
            if (a instanceof JComponent) {
                JComponent jAncestor = (JComponent)a;
                jAncestor.removePropertyChangeListener(this);
            }
            if (a == firstInvisibleAncestor || a instanceof Window) {
View Full Code Here

                    fsWin.repaint();
                    sleep(1000);
                }
            }
            fsWin.removeComponentListener(r1);
            c.removeComponentListener(r2);
        }
        try {
           EventQueue.invokeAndWait(new Runnable() {
               public void run() {
                   gd.setFullScreenWindow(null);
View Full Code Here

/* 1305 */     if (!this.offScreen) {
/* 1306 */       if (this.canvasViewEventCatcher.parentList.size() > 0)
/*      */       {
/* 1309 */         for (int i = 0; i < this.canvasViewEventCatcher.parentList.size(); i++) {
/* 1310 */           Component comp = (Component)this.canvasViewEventCatcher.parentList.get(i);
/* 1311 */           comp.removeComponentListener(this.canvasViewEventCatcher);
/*      */         }
/* 1313 */         this.canvasViewEventCatcher.parentList.clear();
/*      */       }
/*      */
/* 1316 */       Component parent = getParent();
View Full Code Here

/* 1448 */       if (this.canvasViewEventCatcher.parentList.size() > 0)
/*      */       {
/* 1450 */         for (int i = this.canvasViewEventCatcher.parentList.size() - 1; i >= 0; i--) {
/* 1451 */           Component comp = (Component)this.canvasViewEventCatcher.parentList.get(i);
/*      */
/* 1453 */           comp.removeComponentListener(this.canvasViewEventCatcher);
/*      */         }
/* 1455 */         this.canvasViewEventCatcher.parentList.clear();
/*      */       }
/*      */
/* 1459 */       removeComponentListener(this.canvasViewEventCatcher);
View Full Code Here

    }

    void removeListeners(Component ancestor) {
        Component a;
        for (a = ancestor; a != null; a = a.getParent()) {
            a.removeComponentListener(this);
            if (a instanceof JComponent) {
                JComponent jAncestor = (JComponent)a;
                jAncestor.removePropertyChangeListener(this);
            }
            if (a == firstInvisibleAncestor || a instanceof Window) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.