Class DummyFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DummyFrame
extends JFrame
A simple class used to be able to show a JDialog without a parent frame in the OS task bar.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • DummyFrame

      public DummyFrame​(String title, String relativeImageIconPath)
      Constructor.
      Parameters:
      title - the frame title
      relativeImageIconPath - the relative path to the default icon for the frame
    • DummyFrame

      public DummyFrame​(String title, Image imageIcon)
      Constructor.
      Parameters:
      title - the frame title
      imageIcon - the default image icon for the frame
  • Method Details

    • setNewTitle

      public DummyFrame setNewTitle​(String title)
      Update the frame title and return the frame.
      Parameters:
      title - the new title
      Returns:
      the updated dummy frame