Package java.awt

Examples of java.awt.Window.toFront()


    public static boolean containsDialog(Class dialog) {
        checkInstance();
        for (int i = 0; i < DialogTracker.instance.size(); i++) {
            Window check = (Window) DialogTracker.instance.get(i);
            if (check.getClass().getName().equals(dialog.getName())) {
                check.toFront();
                return true;
            }
        }

        return false;
View Full Code Here


            Point  dragWindowOffset = ev.getPoint();
            Window w                = (Window) ev.getSource();

            if (w != null) {
                w.toFront();
            }

            Frame  f = null;
            Dialog d = null;
View Full Code Here

                                Window prevWin = s.lastElement();
                                if (prevWin != null) {
                                    _log.debug("..ToFront: " + prevWin.toString());
                                    // We no longer need this kludge as we have GlassPaneWithEvents.  CraigM: 31/03/2008
                                    // prevWin.setEnabled(true); //PM:8/10/07 klughe to stop the flicker
                                    prevWin.toFront();
                                    prevWin.requestFocus();
                                }
                                // remove the stack if it's empty to prevent keeping lots of
                                // expired entries on the stack, enabling it to grow without bounds
                                if (s.isEmpty()) {
View Full Code Here

        else {
          if (doDebug) {
            _log.debug("["+this+"] Improper Activate : PROPER TARGET = " + properTarget.toString());
          }
            // focus to the deepest level child.
            properTarget.toFront();
            properTarget.requestFocus();
            current = properTarget;
        }
        if (doDebug) {
          _log.debug("["+this+"] CURRENT="+current);
View Full Code Here

                                Window prevWin = s.lastElement();
                                if (prevWin != null) {
                                    _log.debug("..ToFront: " + prevWin.toString());
                                    // We no longer need this kludge as we have GlassPaneWithEvents.  CraigM: 31/03/2008
                                    // prevWin.setEnabled(true); //PM:8/10/07 klughe to stop the flicker
                                    prevWin.toFront();
                                    prevWin.requestFocus();
                                }
                                // remove the stack if it's empty to prevent keeping lots of
                                // expired entries on the stack, enabling it to grow without bounds
                                if (s.isEmpty()) {
View Full Code Here

        else {
          if (doDebug) {
            _log.debug("["+this+"] Improper Activate : PROPER TARGET = " + properTarget.toString());
          }
            // focus to the deepest level child.
            properTarget.toFront();
            properTarget.requestFocus();
            current = properTarget;
        }
        if (doDebug) {
          _log.debug("["+this+"] CURRENT="+current);
View Full Code Here

                                Window prevWin = s.lastElement();
                                if (prevWin != null) {
                                    _log.debug("..ToFront: " + prevWin.toString());
                                    // We no longer need this kludge as we have GlassPaneWithEvents.  CraigM: 31/03/2008
                                    // prevWin.setEnabled(true); //PM:8/10/07 klughe to stop the flicker
                                    prevWin.toFront();
                                    prevWin.requestFocus();
                                }
                                // remove the stack if it's empty to prevent keeping lots of
                                // expired entries on the stack, enabling it to grow without bounds
                                if (s.isEmpty()) {
View Full Code Here

        else {
          if (doDebug) {
            _log.debug("["+this+"] Improper Activate : PROPER TARGET = " + properTarget.toString());
          }
            // focus to the deepest level child.
            properTarget.toFront();
            properTarget.requestFocus();
            current = properTarget;
        }
        if (doDebug) {
          _log.debug("["+this+"] CURRENT="+current);
View Full Code Here

            public void windowGainedFocus(WindowEvent e) {
              windowAncestor.removeWindowFocusListener(this);
              editor.focusInputField(true);
            }
          });
          windowAncestor.toFront();
        }
        editor.removeAncestorListener(this);
      }

      public void ancestorMoved(final AncestorEvent event) {
View Full Code Here

                        uninstall();
                        if (retry < 3) {
                            // try 3 times to regain the focus
                            Window w = JXLoginPane.this.getTLA();
                            if (w != null) {
                                w.toFront();
                            }
                            cot.runTest();
                            retry++;
                        }
                    }
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.