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

PIT. Focused border not shown on List if selected item is removed, XToolkit

XMLWordPrintable

    • b47
    • generic
    • generic
    • Verified

      This bug occurs on XToolkit with b45 AWT PIT build.

      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'm calling List.remove(List.getSelectedIndex()) in the itemStateChanged method of List's ItemListener. Focus border is shown for the first item when the list is displayed. When the first item is clicked using mouse, it gets removed and the focus border is missing for any of the list's items. (Actually it appears that the focus border is on the -1th item. When space bar is pressed, item state changed is triggered for the -1th item).

      To reproduce:
      1. Run the attached testcase
      2. Click on the item '111' using mouse.
      ###@###.### 2005-07-21 06:30:07 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: