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

textFill on CheckBoxSkin doesn't accept CSS styling.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx1.3
    • fx1.2
    • javafx
    • None
    • JavaFX v1.2 build 10, Mac OS X, Java 1.5

      The textFill var cannot be styled on CheckBoxSkin although it works fine on ButtonSkin and RadioButtonSkin.

      Test code:

      Stage {
          title: "Application title"
          width: 250
          height: 80
          scene: Scene {
              stylesheets: "{__DIR__}checkstyle.css"
              content: [
                CheckBox {
                  text: "Should Be Green"
                }
              ]
          }
      }


      /* checkstyle.css */

      CheckBox {
        width: 200;
        fill: green;
        textFill: green;
        font: bold 18pt times;
      }

            dgrieve David Grieve
            diversonjfx Dean Iverson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: