public class FileChooser
extends java.lang.Object
| Constructor | Description |
|---|---|
FileChooser() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
getMediaDirectory() |
Method to get the directory for the media
|
static java.lang.String |
getMediaPath(java.lang.String fileName) |
Method to get the full path for the passed file name
|
static java.lang.String |
pickAFile() |
Method to let the user pick a file and return
the full file name as a string.
|
static java.lang.String |
pickPath(javax.swing.JFileChooser fileChooser) |
Method to pick an item using the file chooser
|
public static java.lang.String getMediaPath(java.lang.String fileName)
fileName - the name of a filepublic static java.lang.String pickPath(javax.swing.JFileChooser fileChooser)
fileChooser - the file Chooser to usepublic static java.lang.String pickAFile()
public static java.lang.String getMediaDirectory()