I have a frame and it contains some different JInternal frames.
I have a request that some people want some of these frames to be free floating, and not confined within a desktop.
Is there any way to do this with JInternal frames? Or is there any way to make the outer desktop not visible so the JInernal frames appear to float? If i did this latter idea i was thinking of a toggle to turn it on and off. That way they could get the desktop back when they needed to access the menu.
the final idea is i could just convert 2 of these JInternal frames to JFrame. and that brings up my question on pre processing. In c++ i can use preprocessor stuff to dictate which code runs when i compile.
i.e. depending on some variable i set, when compiling it would run one or the other line here:
class myclass extends JInternalFrame
class myclass extends JFrame
this would let me maintain two different types of code on run or compile that would hit without resorting to commenting in and out code in a bunch of spots.