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

The "RadioButton[Disabled].textForeground" does not work in Numbus

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 11, 17, 20
    • client-libs
    • None

      For some reason the next option does not work in Nimbus L&F:
      UIManager.getDefaults().put("RadioButton[Disabled].textForeground", radioButtonColor);
      But the next commands work fine:
      UIManager.getDefaults().put("RadioButton[Enabled].textForeground", radioButtonColor);
      UIManager.getDefaults().put("CheckBox[Disabled].textForeground", checkboxColor);

      See the commented line in this test
      test/jdk/javax/swing/JRadioButton/4314194/bug4314194.java

      See discussions of some related changes here:
      https://github.com/openjdk/jdk/pull/10177#issuecomment-1276765550
      https://github.com/openjdk/jdk/pull/10755#issuecomment-1285168651

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: