|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectij.io.OpenDialog
public class OpenDialog
This class displays a dialog window from which the user can select an input file.
| Constructor Summary | |
|---|---|
OpenDialog(java.lang.String title,
java.lang.String path)
Displays a file open dialog with 'title' as the title. |
|
OpenDialog(java.lang.String title,
java.lang.String defaultDir,
java.lang.String defaultName)
Displays a file open dialog, using the specified default directory and file name. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getDefaultDirectory()
Returns the current working directory, which may be null. |
java.lang.String |
getDirectory()
Returns the selected directory. |
java.lang.String |
getFileName()
Returns the selected file name. |
static void |
setDefaultDirectory(java.lang.String defaultDir)
Sets the current working directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenDialog(java.lang.String title,
java.lang.String path)
public OpenDialog(java.lang.String title,
java.lang.String defaultDir,
java.lang.String defaultName)
| Method Detail |
|---|
public java.lang.String getDirectory()
public java.lang.String getFileName()
public static java.lang.String getDefaultDirectory()
public static void setDefaultDirectory(java.lang.String defaultDir)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||