JDK-6628726 : Nimbus L&F: JList - Selected Item is not highlighted when disabled
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2007-11-12
  • Updated: 2011-02-16
  • Resolved: 2008-02-04
Related Reports
Duplicate :  
Description
Nimbus L&F: JList - Selected Item is not highlighted when disabled

1. Run the attached testcase,
2. Switch the Look and Feel to Nimbus, by selecting it from the Look and Feel menu.
3. Select an item from the list
4. Click on the Disable List button
5. Watch the selected item. It is not highlighted anymore, and selection highlight comes back when enabled.

For comparision, 

Switch the look and feel to Windows or Metal and repeat the steps from 3 to 5.  

There are applications/scenarios where the original selection should stay visible even when the list becomes disabled.