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

Lead Selection index is not shown in JFileChooser on GTK LAF

XMLWordPrintable

    • b28
    • x86
    • linux_redhat_3.0
    • Verified

        Lead Selection index is not shown in JFileChosser on GTK LAF.
        Steps to reproduce:
        -------------------
        1) Open SwingSet2 demo on Linux or JDS.
        2) Change the look and feel to GTK.
        3) Goto JFileChooser demo and click show plain FileChooser.
        4) Notice that the focus is in the TextField.
        5) Press Shift+Tab. The Focus is in File List. But you cannot see.
        6) To confirm that the focus is in FileList panel, press down arrow key. you will notice that the second file is chossen. (If there is any).
        This was observed in Mustang PIt of 14th Sept with the following version:

        java version "swing-jcg-linux-02-2004-09-13-int.mustang"
        Java(TM) 2 Runtime Environment, Standard Edition (build swing-jcg-linux-02-2004-09-13-int.mustang)
        Java HotSpot(TM) Client VM (build 1.6.0-beta-b03, mixed mode)

        In Tiger b63, the behaviour is little different. on B63 when u execute the Step#6, the first file will be selected. This looks like a General selection issue with JList. You can reproduce this with the JList Demo also.
        Select any item in the JList and press ctrl+Space, there is no lead selection.

        ---
        Note also that the same problem occurs with JTable. Additionally, the focused cell in JTable is painted in grey if it isn't selected. This also seems weird.
        ###@###.### 2004-09-16

              peterz Peter Zhelezniakov
              mjoshisunw Mayank Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: