Class FileDisplayDialog

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

public class FileDisplayDialog
extends JDialog
Dialog for showing a list of selected files with the option to remove files from the list.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • FileDisplayDialog

      public FileDisplayDialog​(JFrame parent, ArrayList<File> files, boolean modal)
      Creates a new FileSelectionDialog.
      Parameters:
      parent - the parent frame
      files - the files
      modal - if the dialog is to be modal or not
    • FileDisplayDialog

      public FileDisplayDialog​(JDialog parent, ArrayList<File> files, boolean modal)
      Creates a new FileSelectionDialog.
      Parameters:
      parent - the parent frame
      files - the files
      modal - if the dialog is to be modal or not
  • Method Details

    • canceled

      public boolean canceled()
      Returns if the dialog was canceled by the user.
      Returns:
      true if the dialog was canceled by the user
    • getSelectedFiles

      public ArrayList<File> getSelectedFiles()
      Returns the list of selected files.
      Returns:
      the list of selected files