Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4150354

AWT FileDialog spec has incomplete information about two constructors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic


      The FileDialog spec says the following about the
      FileDialog(Frame) and FileDialog(Frame,String,int)
      constructors:
      public FileDialog(Frame parent)
          Creates a file dialog for loading a file. The title of the file dialog
          is initially empty.
          Parameters:
              parent - the owner of the dialog

      public FileDialog(Frame parent,
                        String title,
                        int mode)
          Creates a file dialog window with the specified title for loading
          or saving a file.

          If the value of mode is LOAD, then the file dialog is finding a file
          to read. If the value of mode is SAVE, the file dialog is finding a
          place to write a file.
          Parameters:
              parent - the owner of the dialog.
              title - the title of the dialog.
              mode - the mode of the dialog.
          See Also:
                  LOAD, SAVE



      The spec does not specify that when the file dialog created by these
      constructors is displayed, the files shown are those in the current
      directory.

            sharonz Sharon Zakhour (Inactive)
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: