|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFileChooser
public class FileChooser
A class to make working with a file chooser easier for students. It uses a JFileChooser to let the user pick a file and returns the chosen file name. Copyright Georgia Institute of Technology 2004
Constructor Summary | |
---|---|
FileChooser()
|
Method Summary | |
---|---|
static java.lang.String |
getMediaPath(java.lang.String fileName)
Method to get the full path for the passed file name |
static java.lang.String |
pickADirectory()
Method to let the user pick a directory and return the full path name as a string. |
static java.lang.String |
pickAFile()
Method to let the user pick a file and return the full file name as a string. |
static void |
pickMediaPath()
Method to pick a media path using the file chooser and set it |
static void |
setMediaPath(java.lang.String directory)
Method to set the media path by setting the directory to use |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileChooser()
Method Detail |
---|
public static java.lang.String pickAFile()
public static java.lang.String pickADirectory()
public static java.lang.String getMediaPath(java.lang.String fileName)
fileName
- the name of a file
public static void setMediaPath(java.lang.String directory)
directory
- the directory to use for the media pathpublic static void pickMediaPath()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |