All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.RFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----javax.swing.JFrame
                                           |
                                           +----com.sgi.sysadm.ui.RFrame

public class RFrame
extends JFrame
RFrame is a JFrame that de-iconifies itself if toFront is called and it is iconified. RFrame also calls extraCleanup on every Component in its hierarchy that implements the ExtraCleanup interface when RFrame.dispose is called. This gives Components a convenient hook for cleaning up when they are no longer needed. As the component tree is traversed all parent - child relationships are broken to facilitate garbage collection in light of certain Java bugs such as 4129207. removeNotify is not suitable as a cleanup hook because when an RFrame is de-iconified removeNotify and then addNotify will be called on all Components in the hierarchy.

See Also:
ExtraCleanup

Constructor Index

 o RFrame()
Construct an RFrame.
 o RFrame(String)
Construct an RFrame with a title.

Method Index

 o dispose()
Called when this RFrame is no longer to be used.
 o finalize()
Called when we are garbage-collected.
 o toFront()
In addition to bringing the window to the front, de-iconify it if it is iconified.

Constructors

 o RFrame
 public RFrame(String title)
Construct an RFrame with a title.

Parameters:
title - Title bar string.
 o RFrame
 public RFrame()
Construct an RFrame.

Methods

 o finalize
 protected void finalize() throws Throwable
Called when we are garbage-collected. For debugging.

Throws: Throwable
if there is an error during destruction.
Overrides:
finalize in class Object
 o toFront
 public void toFront()
In addition to bringing the window to the front, de-iconify it if it is iconified.

Overrides:
toFront in class Window
 o dispose
 public void dispose()
Called when this RFrame is no longer to be used. Calls the extraCleanup method on every Component in our hierarchy that implements the ExtraCleanup interface. As the component tree is traversed all parent - child relationships are broken to facilitate garbage collection in light of certain Java bugs such as 4129207.

Overrides:
dispose in class Frame
See Also:
ExtraCleanup

All Packages  Class Hierarchy  This Package  Previous  Next  Index