Class FloatingWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FloatingWindow extends DockingWindow

A window that is floating on-top of the root window and containing another docking window.

A window can be maximized inside the floating window just as in a root window.

After a floating window has been closed it shouldn't be reused again.

Floating window inherits its component properties and shaped panel properties from the root window's window area. It is possible to set specific component and shaped panel properties for a floating window in the FloatingWindowProperties, see getFloatingWindowProperties().

A floating window is created by calling the RootWindow.createFloatingWindow(Point, Dimension, DockingWindow) method or indirectly created by calling the DockingWindow.undock(Point) method.

It's possible to add a menu bar to the floating window. Just call:

   myFloatingWindow.getRootPane().setJMenuBar(myMenuBar);
 

The floating window is placed as the BorderLayout.CENTER component of the content pane of the root pane. You can add additional components in the other BorderLayout positions. Example, add a status label at the bottom:

   myFloatingWindow.getRootPane().getContentPane().add(myStstusLabel, BroderLayout.SOUTH);
 
Since:
IDW 1.4.0
See Also: