Class PFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PFileChooser extends JFileChooser
Overridden to wrap a workaround when using the JFileChooser with WebStart. The JFileChooser triggers a security exception that manifests itself as a warning dialog about not being able to read Drive A under WebStart. This class uses a different FileSystemView to get around that problem.
Version:
%version: 2 % %date_modified: Thu Sep 27 11:28:39 2001 %
Author:
kapono
See Also:
  • Constructor Details

    • PFileChooser

      public PFileChooser()
  • Method Details

    • getInstance

      public static PFileChooser getInstance()
      Factory method to retrieve one unique instance. Useful if you're bringing this up from multiple places and you want it to default to the last directory used by the user.
    • getFileToSave

      public File getFileToSave(JComponent c)
      Convenience method that displays a Save file chooser and returns a File object representing the selected file. An existing file cannot be selected and a warning dialog will be displayed if an existing file is in fact selected. When the warning dialog is dismissed the file chooser will redisplay itself.
      Parameters:
      c - The parent component for this file chooser
      Returns:
      The file to save the data to