List of usage examples for javax.swing JInternalFrame moveToBack
public void moveToBack()
JLayeredPane
. From source file:org.en.tealEye.guiMain.MainAppFrame.java
public void activateInternalFrame(String panelName) { JInternalFrame[] frames = desktop.getAllFrames(); for (JInternalFrame frame : frames) { if (frame.getName().equals(panelName)) { frame.moveToFront();/*from w w w . j ava 2 s . co m*/ //desktop.getDesktopManager().deactivateFrame(frame); desktop.getDesktopManager().activateFrame(frame); try { frame.setSelected(true); menuController.setActiveFrameName(frame.getName()); } catch (PropertyVetoException e) { log.error(e.getMessage(), e); } } else { frame.moveToBack(); } } }