Q:

Keep iconified JInternalFrames on top always

I have 5 JInternalFrames in one JDesktopPane. I have to keep 4 JInternalFrames iconified and keep only 1 active. But when I maximize 1 JinternalFrame, other iconified JInternalFrames goes behind it, so I have to iconify the active JInternalFrame and then restore the required one.
Is there a way that I can keep all my Iconified JInternalFrames on top always?

A:

Use JDesktopPane.setComponentZOrder(java.awt.Component, int) and ensure that the iconified frames are in a layer which is above the one that is not iconified.

