org.argouml.ui
Class FileChooserFactory

java.lang.Object
  extended byorg.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.


Constructor Summary
FileChooserFactory()
           
 
Method Summary
static JFileChooser getFileChooser()
          Return a proper FileChooser.
static JFileChooser getFileChooser(String directory)
          Return a proper FileChooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserFactory

public FileChooserFactory()
Method Detail

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


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook