/** * Moves the window to the bottom of the window stack. If the window is * active, the active window will be cleared. If the window is the focus * host, the focus will be cleared. */ public void moveToBack() { if (!isOpen()) { throw new IllegalStateException("Window is not open."); } if (isActive()) { clearActive(); } if (containsFocus()) { clearFocus(); } // Ensure that the window and all of its owning ancestors are moved // to the back Display display = getDisplay(); int i = display.indexOf(this); if (i > 0) { display.move(i, 0); } if (owner != null) { owner.moveToBack(); } }
/** * Moves the window to the bottom of the window stack. If the window is * active, the active window will be cleared. If the window is the focus * host, the focus will be cleared. */ public void moveToBack() { if (!isOpen()) { throw new IllegalStateException("Window is not open."); } if (isActive()) { clearActive(); } if (containsFocus()) { clearFocus(); } // Ensure that the window and all of its owning ancestors are moved // to the back Display display = getDisplay(); int i = display.indexOf(this); if (i > 0) { display.move(i, 0); } if (owner != null) { owner.moveToBack(); } }