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

JFileChooser: Approve button's text gets reset when dir is selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.2, 6
    • client-libs
    • x86
    • windows_2000, windows_xp



      Name: dk106046 Date: 07/07/2003

      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

      And

      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b16)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b16, mixed mode)

      Approve button's text gets reset when dir is selected.

      Testcase :-
            
            JFileChooserTests.java which is provided in the SUN JCK testsuite.
            
      [This bug is being submitted as a courtesy, in order to maintain uniformity between Sun & IBM JDKs. It has been fixed in IBM JDKs. Please contact ###@###.### if you have questions.]
      ======================================================================
      Additional description from the JDC:
      The "Save" dialog behaviour is the expected behaviour,
      however In the "Open" dialog when we specify the new
      text/value to the approve button then selecting a directory
      or a file should not change the text of the approve button.

      This problem exists in all the look and feels.

      Here is the problem details.
      - Problem occurs in the JFileChooserTest0006
      - When we run this testcase we will get a frame with a
      textfiled to enter text.
      - Type some text (say: "NewText" )in the textfield provided
      and press enter.
      - Press the button "JFileChooser open dialog"
      - we see that the "Approve" Button's text is changed to the
      "NewText".
      - Select any directory and notice that the text of the
      "Approve" button resets to "Open"
      - If we select any file,the text of the Approve button will
      reset to "NewText".
      - Select any directory the text will again become "Open"

            leifs Leif Samuelsson (Inactive)
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: