public final class FileDialogs
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FileDialogs.XFileFilter
Extended file filter
|
Modifier | Constructor and Description |
---|---|
private |
FileDialogs() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFile(java.lang.String currentDirectory)
Get file
|
static java.lang.String |
getFolder(java.lang.String currentDirectory)
Get directory
|
static java.lang.String |
getSaveFile(java.lang.String currentDirectory)
Get save file
|
private static javax.swing.JFileChooser |
makeFileChooser()
Make folder chooser
|
private static javax.swing.JFileChooser |
makeFolderChooser()
Make folder chooser
|
private static void |
setCurrentDirectory(javax.swing.JFileChooser chooser,
java.lang.String currentDirectory)
Set current directory for file chooser
|
public static java.lang.String getFile(java.lang.String currentDirectory)
currentDirectory
- current directorypublic static java.lang.String getSaveFile(java.lang.String currentDirectory)
currentDirectory
- current directoryprivate static javax.swing.JFileChooser makeFileChooser()
public static java.lang.String getFolder(java.lang.String currentDirectory)
currentDirectory
- current directoryprivate static javax.swing.JFileChooser makeFolderChooser()
private static void setCurrentDirectory(javax.swing.JFileChooser chooser, java.lang.String currentDirectory)
chooser
- file choosercurrentDirectory
- directory to set as current