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

PIT: Selected file name gets over ridden by the file name set programmatically in FileDialog

XMLWordPrintable

    • generic
    • generic

      This occurs with b45 AWT PIT build with XToolkit and MToolkit

      java version "1.6.0-awt.pit-int-awt-blade"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_14_Jul_2005_06_02-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b42, mixed mode)

      I've set a file name programmatically in a FileDialog. When the file dialog shows up, I'm selecting another file name by clicking on a file. But when I select another directory, the selected file name gets over ridden by the pre-set file name.

      Also, in XToolkit, if I click the Filter button on the file dialog, the selected file name gets over-ridden by the preset file name.

      Once the user clicks on a file to select it, the preset file name should not over ride the selected file name. File dialog behaves that way in Windows.

      To reproduce:
      1. Run the attached testcase
      2. Select a file and then click on a directory. If the selected file name gets over ridden by the default one, bug is reproduced.
      ###@###.### 2005-07-20 14:00:27 GMT

            dcherepanov Dmitry Cherepanov
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: