Package ij.io
Class SaveDialog
java.lang.Object
ij.io.SaveDialog
This class displays a dialog window from
which the user can save a file.
-
Constructor Summary
ConstructorsConstructorDescriptionSaveDialog
(String title, String defaultName, String extension) Displays a file save dialog with 'title' as the title, 'defaultName' as the initial file name, and 'extension' (e.g.SaveDialog
(String title, String defaultDir, String defaultName, String extension) Displays a file save dialog, using the specified default directory and file name and extension. -
Method Summary
Modifier and TypeMethodDescriptionReturns the selected directory.Returns the selected file name.static String
setExtension
(String name, String extension)
-
Constructor Details
-
SaveDialog
Displays a file save dialog with 'title' as the title, 'defaultName' as the initial file name, and 'extension' (e.g. ".tif") as the default extension. -
SaveDialog
Displays a file save dialog, using the specified default directory and file name and extension.
-
-
Method Details
-
setExtension
-
getDirectory
Returns the selected directory. -
getFileName
Returns the selected file name.
-