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

solaris: default FileDialog title is not empty

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6

      ----------------------------------------------------------------
      jeff.dunn@eng 30Sep98

      Copied from 4145237

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

            svnguyen Son Nguyen
            jdunnsunw Jeffrey Dunn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: