Class TrackingFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
DebugConsoleWindow

public abstract class TrackingFrame extends JFrame
JFrame implementation that automatically tracks location on screen.
Extend this class and use super(prefs, "whateverPrefix"); to apply.

NOTE: Not compatible with setLocationRelativeTo().
See Also:
  • Constructor Details

    • TrackingFrame

      public TrackingFrame(Preferences prefs, String prefixKey)
      JFrame implementation that automatically tracks location on screen.
      Extend this class and use super(prefs, "whateverPrefix"); to apply.

      NOTE: Not compatible with setLocationRelativeTo().
      Parameters:
      prefs - preferences object to save position information to.
      prefixKey - prefix to attach on the preferences keys.
      (Recommended: class name)