Package java.awt

Examples of java.awt.Component.addComponentListener()


        log.debug("addFrame " + frame.getTitle());
        if (frame instanceof ISwingPeer) {
            ISwingPeer<?> isp = ((ISwingPeer<?>) frame);
            Component comp = isp.getAWTComponent();
            if (!(comp instanceof Frame) || ((Frame) comp).isUndecorated()) {
                comp.addComponentListener(new ComponentAdapter() {
                    @Override
                    public void componentHidden(ComponentEvent e) {
                        selectNextFrame(frame.getDesktopPane());
                    }
                });
View Full Code Here


        firstInvisibleAncestor = null;
        for (a = ancestor;
             firstInvisibleAncestor == null;
             a = a.getParent()) {
            if (addToFirst || a != ancestor) {
                a.addComponentListener(this);

                if (a instanceof JComponent) {
                    JComponent jAncestor = (JComponent)a;

                    jAncestor.addPropertyChangeListener(this);
View Full Code Here

  firstInvisibleAncestor = null;
  for (a = ancestor;
       firstInvisibleAncestor == null;
       a = a.getParent()) {
      if (addToFirst || a != ancestor) {
    a.addComponentListener(this);

    if (a instanceof JComponent) {
        JComponent jAncestor = (JComponent)a;

        jAncestor.addPropertyChangeListener(this);
View Full Code Here

        firstInvisibleAncestor = null;
        for (a = ancestor;
             firstInvisibleAncestor == null;
             a = a.getParent()) {
            if (addToFirst || a != ancestor) {
                a.addComponentListener(this);

                if (a instanceof JComponent) {
                    JComponent jAncestor = (JComponent)a;

                    jAncestor.addPropertyChangeListener(this);
View Full Code Here

        final ResizeEventChecker r1 = new ResizeEventChecker();
        final ResizeEventChecker r2 = new ResizeEventChecker();

        if (gd.isDisplayChangeSupported()) {
            fsWin.addComponentListener(r1);
            c.addComponentListener(r2);
            for (final DisplayMode dm1 : dms) {
                try {
                    EventQueue.invokeAndWait(new Runnable() {
                        public void run() {
                            System.err.printf("----------- Setting DM %dx%d:\n",
View Full Code Here

/* 1313 */         this.canvasViewEventCatcher.parentList.clear();
/*      */       }
/*      */
/* 1316 */       Component parent = getParent();
/* 1317 */       while (parent != null) {
/* 1318 */         parent.addComponentListener(this.canvasViewEventCatcher);
/* 1319 */         this.canvasViewEventCatcher.parentList.add(parent);
/* 1320 */         parent = parent.getParent();
/*      */       }
/*      */
/* 1323 */       addComponentListener(this.canvasViewEventCatcher);
View Full Code Here

        firstInvisibleAncestor = null;
        for (a = ancestor;
             firstInvisibleAncestor == null;
             a = a.getParent()) {
            if (addToFirst || a != ancestor) {
                a.addComponentListener(this);

                if (a instanceof JComponent) {
                    JComponent jAncestor = (JComponent)a;

                    jAncestor.addPropertyChangeListener(this);
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.