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

ActionListeners on JRadioButtons don't get notified when selection is changed with arrow keys

XMLWordPrintable

      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.

            arapte Ambarish Rapte
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: