Public Member Functions | |
| DesktopListener (JDesktopPane jPane, JScrollPane jScroller) | |
| Creates the DesktopListener object. | |
| void | componentResized (ComponentEvent e) |
| updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized | |
| void | componentShown (ComponentEvent e) |
| revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop | |
| void | componentMoved (ComponentEvent e) |
| updates the preferred size of the desktop when a component is moved | |
| void | componentHidden (ComponentEvent e) |
| interface placeholder | |
| void | actionPerformed (ActionEvent e) |
| common actionPerformed method that responds to both button and menu events. | |
| void | resizeDesktop () |
| resizes the virtual desktop based upon the locations of its internal frames. | |
Package Attributes | |
| JDesktopPane | m_jPane |
| Desktop pane that will need resizing for scroll bars. | |
| JScrollPane | m_jScroller |
| Scroll pane enclosing m_jPane. | |
|
||||||||||||
|
Creates the DesktopListener object.
|
|
|
common actionPerformed method that responds to both button and menu events. If no action command provided in the ActionEvent, selects the frame associated with the current button / menu item (if any).
|
|
|
interface placeholder
|
|
|
updates the preferred size of the desktop when a component is moved
|
|
|
updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized
|
|
|
revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop
|
|
|
resizes the virtual desktop based upon the locations of its internal frames. This updates the desktop scrollbars in real-time. Executes as an "invoked later" thread for a slight perceived performance boost. |
1.4.6-NO