Module ij
Package ij.io

Class 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

      All Methods Static Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectoryChooser

        public DirectoryChooser​(java.lang.String title)
        Display a dialog using the specified title.
    • Method Detail

      • 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.