org.argouml.ui
Class FileChooserFactory
java.lang.Object
org.argouml.ui.FileChooserFactory
- public class FileChooserFactory
- extends Object
Factory class to return a JFileChooser configured
according to JRE requirements.
TODO: Remove when JRE1.3 no longer supported.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileChooserFactory
public FileChooserFactory()
getFileChooser
public static JFileChooser getFileChooser()
- Return a proper FileChooser. This replaces the normal FileChooser with a
system-dependent one, but solely in case of Sun Java 1.3.1 on Windows.
- Returns:
JFileChooser
getFileChooser
public static JFileChooser getFileChooser(String directory)
- Return a proper FileChooser. This replaces the normal FileChooser with a
system-dependent one, but solely in case of Sun Java 1.3.1 on Windows.
- Parameters:
directory
- a String
giving the path to a file
or directory. Passing in a null
string causes the file chooser to point to the user's default directory.
This default depends on the operating system. It is
typically the "My Documents" folder on Windows, and the user's
home directory on Unix.
- Returns:
JFileChooser