How do I activate the topmost JInternalFrame in a JDesktopPane after the currently active JInternalFrame is closed?
Created May 4, 2012
Sandip Chitale
- Listen to the InternalFrame events using the InternalFrameListener.
-
In the
public void internalFrameClosed(InternalFrameEvent e)
orpublic void internalFrameClosing(InternalFrameEvent e)
call backs get the zeroth JInternalFrame from the JDesktopPane and select it usingdesktopPane.getAllFramesInLayer(inLayerSameAsTheClosingFrame)[0].setSelected(true);