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

FileDialog created with FileDialog(Frame) has title, contrary to what spec says

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • docs
    • generic
    • generic


      The FileDialog spec says the following about the FileDialog(Frame)
      constructor:

        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


      However, a FileDialog created by using this constructor does *not* have
      an empty title.
      On Solaris, a FileDialog created by using this constructor has a title of '_popup', and on winNT, it has a title of 'Open'.

      The spec and the implementation are not in agreement.

      The attached application (FileDialogTest.java) demonstrates this.
      To recreate, press the 'Test FileDialog(p)' button.

            asommere Alan Sommerer (Inactive)
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: