I have a JDesktopPane with multiple JInternalFrames opened. Now, whenever I hit a key combination like 'Ctrl+H' I would like a particular JInternalFrame (main window) to be brought to the front. This seems to work fine, with the main window brought to the front.
But, once the window is on top of the other windows, I am not able to bring the other windows to the front by clicking on them. It seems like the main window is permanently set to have the lowest z-order.
I tried using JInternalFrame's show() method, whose API description seemed perfect for me,
public void show()
Shows this internal frame, and brings it to the front.
If this window is not yet visible, show makes it visible. If this window is already visible, then this method brings it to the front.
but it does not even bring the main window to the front. Any pointers are welcome. Thanks in advance.