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

Solaris 2.6: FileDialog default directory incorrect

XMLWordPrintable

    • 1.2rc2
    • x86, sparc
    • solaris_2.6
    • Not verified

      Swing Notepad FileChooser has wrong path in top box on Solaris with JDK-1.2beta4I. Instead of showing the path to the current directory that is displayed in the box below it, it displays (in my case) my home directory (which is far from what it be pointing to. In other words, it has:
      /home/nancys
      and should be
      /usr/local/java/jdk1.2/solaris/demo/jfc/Notepad

      Steps to Reproduce:
      0) Launch Notepad on Solaris with JDK-1.2beta4I.
      1) Select Open from the File menu or click on the Open File icon.
      2) Look at the window that is presented.
      RESULT: Swing Notepad FileChooser has wrong path in top box on Solaris with JDK-1.2beta4I.


      allan.jacobs@Eng 1998-10-28

      Run the JCK interactive test
        api/java_awt/interactive/descriptions.html#ComponentTest
      using the attached script X.ksh

      Once the test window appears:
      Press Start
      Click on menu item File=>Save

      The path in the Textfield under the label "Enter path or folder name:"
      is ${HOME}. This is a bug. The files listed in the Textarea under the label "Files"
      are all in ${PWD}. This is OK.
       
      Click on the menu item File=>Quit
      In the Quit Application dialog, click on Yes
      Select the "No" button in the remaining test window.

      The bug is in jdk1.2 fcs RC1.


            dmendenhsunw David Mendenhall (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: