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

Focus stuck on radio button in JColorChooser

    XMLWordPrintable

Details

    Description

      Navigating JColorChooser with keyboard is broken.

      1. Start SwingSet2;
      2. Switch JColorChooser demo (third button);
      3. Click Background or another button to open a JColorChooser;
      4. Switch to any color model tab (HSV, HSL, RGB or CMYK),
          press Right arrow key;
      5. Press Tab, focus moves to Hue (if HSV tab is selected);
      6. Press Tab, focus stays on Hue radio button.

      Using arrow keys, you can change the selected radio button but pressing Tab does not move the focus.

      The bug is reproducible in latest versions of Java 11 and 8:
      11.0.20 and 8u381.

      The bug is not reproducible in latest version of Java 17, 20, 21 and mainline: 17.0.8, 20.0.2, 21 and 22.

      The workaround is to use Shift-Tab to navigate backwards.

      Attachments

        Activity

          People

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: