Class RetentiveDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
HistoryPalette, SwingWorkerPalette, WindowListBoxDialog

public abstract class RetentiveDialog extends JDialog

Dialog capable of saving its size and location between sessions. Keys are automatically prefixed with unique identifier mapped to screen configuration/resolution. getPreferences() method must be implemented in order to determine preference storage location.

initVisibility() must be called after construction in order to restore visibility.

See Also:
  • Constructor Details

  • Method Details

    • initVisibility

      public void initVisibility()
    • setVisible

      public void setVisible(boolean pVisible)
      Overrides:
      setVisible in class Dialog
    • getPreferences

      protected Preferences getPreferences()
      Storage location for size/location/visibility information.
      Returns:
      preferences