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

Focus at the wrong place in JFileChooser after changing the column in file view in detail mode.

    Details

      Description

      After changing the first column ( by default "Name" column is seen, change that to "Size" Column) in the file view in detail mode & clicking any where on the first column the focus goes to the first cell of the first column. This don't happens on the native file chooser. Clicking any where on the first column the focus goes to the first cell of the "Name" column & selects the cell which gets highlighted. But in our file chooser just the focus is seen on the first cell. This happens in Metal LookAndFeel & Window LookAndFeel.

      I have attached the screen shot of native , metal & window look & feel.

      Expected :- first cell of the "Name" column is to be selected.
      Actual :- first cell of the column is selected.

      In jdk5.0 b64, selecting the first cell, selects the whole row but still the focus is in the first cell. In jdk6.0, selecting the first cell, the focus is present only of the first cell , the row are not select.

      step to reproduce
      -----------------
      1)Run SwingSet2.
      2) Select JFileChooser demo.
      3) Click on "Show Plin JFileChooser" button.
      4) Select Detail View.
      5) Change the column. example : Make the "Size" to be the first column.
      6) Click any where on the first column, you can see the "Focus" is on the first cell of the first column.


      Focus Related bugs in JFileChooser
      4765382, 6531968 , 5088532 , 4972060 , 4846272 , 5089102.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: