All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.widgets.FileDialogWrapper
java.lang.Object
|
+----com.ibm.beans.widgets.FileDialogWrapper
- public class FileDialogWrapper
- extends Object
A wrapper class that resolves some of the limitations of
the JavaSoft FileDialog class on Win32 (and possibly on other platforms).
This class provides two static methods to allow callers to get
a file or directory as selected by a user.
-
FileDialogWrapper()
-
-
getUserSelectedDirectory(Frame, String)
-
Displays a file dialog and returns the directory selected, if any.
-
getUserSelectedFile(Frame, String, String)
-
Displays a file dialog and returns the file selected, if any.
FileDialogWrapper
public FileDialogWrapper()
getUserSelectedFile
public static String getUserSelectedFile(Frame parent,
String initialDirectory,
String initialFilespec)
- Displays a file dialog and returns the file selected, if any.
- Parameters:
- parent - The Frame that is to own the file dialog.
- initialDirectory - The initial directory displayed by the file dialog.
- initialFilespec - The initial file specification displayed by the file dialog.
- Returns:
- A string indicating the selected file or null if no file selected.
- See Also:
- FileDialog
getUserSelectedDirectory
public static String getUserSelectedDirectory(Frame parent,
String initialDirectory)
- Displays a file dialog and returns the directory selected, if any.
- Parameters:
- parent - The Frame that is to own the file dialog.
- initialDirectory - The initial directory displayed by the file dialog.
- Returns:
- A string indicating the selected directory or null if no directory selected.
- See Also:
- FileDialog
All Packages Class Hierarchy This Package Previous Next Index