Example usage for javax.swing JInternalFrame moveToFront

List of usage examples for javax.swing JInternalFrame moveToFront

Introduction

In this page you can find the example usage for javax.swing JInternalFrame moveToFront.

Prototype

public void moveToFront() 

Source Link

Document

Convenience method that moves this component to position 0 if its parent is a JLayeredPane.

Usage

From source file:org.en.tealEye.guiMain.MainAppFrame.java

public void normalizeAllFrames() {
    Collection<JInternalFrame> obj = frameMap.values();
    int i = 0;/*from ww w.  j  a  v  a 2s .  c  o m*/
    for (JInternalFrame oframe : obj) {
        if (oframe.isIcon())
            try {
                desktop.getDesktopManager().deiconifyFrame(oframe);
                oframe.setIcon(false);

            } catch (PropertyVetoException e) {
                log.error(e.getMessage(), e);
            }
        desktop.getDesktopManager().resizeFrame(oframe, i, i, 450, 450);
        desktop.getDesktopManager().activateFrame(oframe);
        try {
            oframe.setSelected(false);
        } catch (PropertyVetoException e) {
            log.error(e.getMessage(), e);
        }
        oframe.moveToFront();
        i = i + 10;
    }
}