JDK-8007724 : RFE: JComboBox shouldn't sending ActionEvents for keyboard navigation
  • Type: Backport
  • Backport of: JDK-4199622
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0,6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-02-07
  • Updated: 2013-06-16
  • Resolved: 2013-03-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u40 b16Fixed
Comments
Thanks Vlad, that worked fine.
16-06-2013

Verified in 7u40b28 using regression test
14-06-2013

This fix does not appear to work in 7u40 b27. When using the mouse, you can open the dropdown and move the mouse cursor from entry to entry and no action event is sent. When you click the mouse button on an entry, the action event is sent, the dropdown closes and the frame displays the item that was selected. When using the keyboard arrow keys, as you change from entry to entry, an action event is sent each time and the frame displays the item that is now highlighted. The dropdown doesn't close, so you can keep selecting items with the arrow keys, which are again reflected in the frame. When the space bar is pressed, the currently highlighted entry is selected and the dropdown closes. The issue is with the arrow keypresses, the highlight should move but not actually select the entry each time. Tested on Windows 7.
08-06-2013