JDK-8226892 : ActionListeners on JRadioButtons don't get notified when selection is changed with arrow keys
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u211,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-06-27
  • Updated: 2021-07-28
  • Resolved: 2019-10-30
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 11 JDK 13 JDK 14 JDK 7 JDK 8 Other
11.0.7-oracleFixed 13.0.4Fixed 14 b25Fixed 7u331Fixed 8u251Fixed openjdk7uFixed
Related Reports
Duplicate :  
Relates :  
Description
ActionListeners on JRadioButtons don't get notified when selection is changed 
with arrow keys. If radio buttons are part of a button group, using the arrow keys to select a 
radio button does not fire action listeners.

See this closed bug: https://bugs.openjdk.java.net/browse/JDK-6314014 

To reproduce this, run the RadioButtonDemo: 
https://docs.oracle.com/javase/tutorial/uiswing/examples/zipfiles/components-RadioButtonDemoProject.zip 
Use the up and down arrows to change the selection.  Note that the selection 
appears to change, but the picture doesn't change until the space bar is   
pressed. 

Arrows should either just change the focus without changing  the selection, 
or the selection should fire action listeners. 
Comments
Fix request (13u) I'd like to port it to 13u as well. Patch applies cleanly.
02-06-2020

Requested 8u262. Default to critical was due to Oracle JDK 8u251 parity.
10-03-2020

Right, but I don't see any case for making this a critical fix for 8u252. Please target 8u262.
10-03-2020

Fix Request (OpenJDK 8u): Please approve this fix for OpenJDK 8u for Oracle JDK 8u parity. The JDK 11u patch did not apply cleanly. Minor touch ups in the test were needed. Test fails before, passes after patch. I've sent it for review and it got approved by Aleksey Shipilev. RFR approval: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-March/011360.html webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8226892/01/webrev/
06-03-2020

Fix request (11u) Requesting this backport for Oracle 11.0.7 parity. Applies clean.
17-02-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/0fa6b6461451 User: psadhukhan Date: 2019-11-21 09:06:33 +0000
21-11-2019

URL: https://hg.openjdk.java.net/jdk/client/rev/0fa6b6461451 User: arapte Date: 2019-10-30 13:24:56 +0000
30-10-2019

The fix review is completed, approved: http://mail.openjdk.java.net/pipermail/swing-dev/2019-October/009805.html http://cr.openjdk.java.net/~arapte/a11y/8226892/webrev.00/
09-10-2019

The issue exists in the latest jdk version(jdk 14)
24-07-2019

Does it affect 11? 13?
03-07-2019