java.lang.Object
ij.io.DirectoryChooser
public class DirectoryChooser
extends java.lang.Object
This class displays a dialog box that allows the user can select a directory.
-
Constructor Summary
Constructors Constructor Description DirectoryChooser(java.lang.String title)
Display a dialog using the specified title. -
Method Summary
Modifier and Type Method Description java.lang.String
getDirectory()
Returns the directory selected by the user.static void
setDefaultDirectory(java.lang.String dir)
Sets the default directory presented in the dialog.
-
Constructor Details
-
DirectoryChooser
public DirectoryChooser(java.lang.String title)Display a dialog using the specified title.
-
-
Method Details
-
getDirectory
public java.lang.String getDirectory()Returns the directory selected by the user. -
setDefaultDirectory
public static void setDefaultDirectory(java.lang.String dir)Sets the default directory presented in the dialog.
-