Currently I have a program which uses a JDesktopPane within a Content Pane to display JInternalFrame's. I also have menu bar which is added to the content pane. The problem is as follows.
When you move a JInternalFrame, with the mouse, it is allowed to go above or "over" the Menu Bar. When you do this, then move the JInternalFrame "off" of the Menu bar the Menu Bar is erased and does not redraw. However, the menu still exists. When you click where the Menu should be, it redraws and displays.
What I really want is the JInternalFrames to not be able to be moved beyond the confines of the JDesktop. The JMenuBar appears to be "over" the JDesktop, thus the JInternalFrames can move above the Menu.
An thoughts?
Thanks,
Cabaal
When you move a JInternalFrame, with the mouse, it is allowed to go above or "over" the Menu Bar. When you do this, then move the JInternalFrame "off" of the Menu bar the Menu Bar is erased and does not redraw. However, the menu still exists. When you click where the Menu should be, it redraws and displays.
What I really want is the JInternalFrames to not be able to be moved beyond the confines of the JDesktop. The JMenuBar appears to be "over" the JDesktop, thus the JInternalFrames can move above the Menu.
An thoughts?
Thanks,
Cabaal