Class FileSelectionDialog

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

public class FileSelectionDialog
extends JDialog
A simple dialog for selecting between different files.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • FileSelectionDialog

      public FileSelectionDialog​(JFrame parent, ArrayList<File> files, String text)
      Creates a new FileSelection dialog.
      Parameters:
      parent - the parent frame
      files - the list of files
      text - the help text to display
    • FileSelectionDialog

      public FileSelectionDialog​(JDialog parent, ArrayList<File> files, String text)
      Creates a new FileSelection dialog.
      Parameters:
      parent - the parent dialog
      files - the list of files
      text - the help text to display
  • Method Details

    • getSelectedFile

      public File getSelectedFile()
      Returns the file selected by the user.
      Returns:
      the file selected by the user
    • isCanceled

      public boolean isCanceled()
      Indicates whether the user canceled the dialog.
      Returns:
      a boolean indicating whether the canceled the dialog