|
|||||||
| 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.
| Constructor Summary | |
|---|---|
FileChooser()
|
|
| Method Summary | |
|---|---|
static String |
getMediaDirectory()
Method to get the directory for the media |
static String |
getMediaPath(String fileName)
Method to get the full path for the passed file name |
static String |
pickAFile()
Method to let the user pick a file and return the full file name as a string. |
static String |
pickPath(JFileChooser fileChooser)
Method to pick an item using the file chooser |
| 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 String getMediaDirectory()
public static String getMediaPath(String fileName)
fileName - the name of a file
public static String pickAFile()
public static String pickPath(JFileChooser fileChooser)
fileChooser - the file Chooser to use
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||