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

Focus does not restore to the last file or folder after changing the focus fore & back in JFileChoos

    XMLWordPrintable

    Details

      Description

      when a folder or file is select in any mode either details mode or list mode. pressing tab will transfer the focus from file view to "File Name" textfile. And once again when you want to go back to file view & select the last selected file or folder is not possible in JFileChooser , but native does. this is windows look and feel as well as Metal look And feel.

      Step to reproduce
      ------------------
      1) Run SwingSet2.
      2) Select FileChooser demo.
      3) Click "Show Plain JFileChooser". when the file chooser is visible. Press tab untill the focus goes to file view. Navigate two to three folder or file & press tab . now the focus is on the "File Name" textfield.
      4) Now press "shift + tab" key the focus goes back to file view. Observe that focus goes to the first element in the file view.

      Expected : -
      The focus should go to the last selected value in the fileview.
      Actual :-
      The focus goes to the first element in the file view.

      I tested this in jdk6.0.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: