WindowMenu
Complete functionality of a usual Window Menu is packaged in one component called the WindowMenu. Only two lines of code is needed to add this functionality to any GUI application
WindowMenu wm = new WindowMenu(jDesktopPane);
yourApplicationMenuBar.add(wm);
Here is a short description of the WindowMenu functionality
Cascade : Cascading the window views enables you to bring one window to the
front of the screen. You can click the title bars of the other windows to bring
them to the front of the screen.
Tile Horizontally : All windows are tiled horizontally within the client region
of the main window.
Tile Vertically : All windows are tiled vertically within the client region of
the main window.
Close ALL : Closes all windows
All Windows : Opens a flip menu. The menu items are the currently opened files.
Selecting the file to bring them to the front of the screen. The number of files
shown can be modified.


