I need to create two JFrame, f1 and f2, so that:
- f2 would be always exactly under f1, even if f2 gains the focus.
- f1 is not necessarily and always on top (e.g. a popup can appear on top).
- no other window (from the same java application or from any other application of the OS) could be inserted between f1 and f2. Note: I can't use CardLayout or InternalFrames or other light-weight components.I really need two JFrames (or Window). The reason is that I have to reparent a X-Window on a Java application and for several reasons I need that this X-Wwindow would be reparent on the f2 frame and that part of the f1 window be transparent so that the user can see the X-Window behind.
What ever you are attempting to write protect can easily be taken with a screen capture, so the clear window over the actual product is fairly irrelivent. Also the layering of applications/windows is taken care of in the OS and not controlled by Java to the extent you desire. But you can layer 2 pannels in your frame to do the same task.