Class PropertiesDialog

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

public final class PropertiesDialog extends JDialog
See Also:
  • Constructor Details

    • PropertiesDialog

      public PropertiesDialog(PropertiesGameSettings source, String imageFile)
      Constructor for the PropertiesDialog. Creates a properties dialog initialized for the primary display.
      Parameters:
      source - the GameSettings object to use for working with the properties file.
      imageFile - the image file to use as the title of the dialog; null will result in to image being displayed
      Throws:
      Ardor3dException - if the source is null
    • PropertiesDialog

      public PropertiesDialog(PropertiesGameSettings source, URL imageFile)
      Constructor for the PropertiesDialog. Creates a properties dialog initialized for the primary display.
      Parameters:
      source - the GameSettings object to use for working with the properties file.
      imageFile - the image file to use as the title of the dialog; null will result in to image being displayed
      Throws:
      Ardor3dException - if the source is null
    • PropertiesDialog

      public PropertiesDialog(PropertiesGameSettings source, String imageFile, Stack<Runnable> mainThreadTasks)
      Constructor for the PropertiesDialog. Creates a properties dialog initialized for the primary display.
      Parameters:
      source - the GameSettings object to use for working with the properties file.
      imageFile - the image file to use as the title of the dialog; null will result in to image being displayed
      mainThreadTasks - the stack of tasks to run on the main thread
      Throws:
      Ardor3dException - if the source is null
    • PropertiesDialog

      public PropertiesDialog(PropertiesGameSettings source, URL imageFile, Stack<Runnable> mainThreadTasks)
      Constructor for the PropertiesDialog. Creates a properties dialog initialized for the primary display.
      Parameters:
      source - the GameSettings object to use for working with the properties file.
      imageFile - the image file to use as the title of the dialog; null will result in to image being displayed
      mainThreadTasks - the stack of tasks to run on the main thread
      Throws:
      Ardor3dException - if the source is null
  • Method Details

    • setImage

      public void setImage(String image)
      setImage sets the background image of the dialog.
      Parameters:
      image - String representing the image file.
    • setImage

      public void setImage(URL image)
      setImage sets the background image of this dialog.
      Parameters:
      image - URL pointing to the image file.
    • isCancelled

      public boolean isCancelled()
      Returns:
      Returns true if this dialog was cancelled