0 Replies Latest reply: Mar 11, 2012 7:01 PM by 923123 RSS

    JavaFX 1.3.1  - creating custom controls with CSS support

    923123
      Hi,

      Is it possible to change control's property (which is declared public) via CSS of a custom node ?
      I know I can use classes, etc but ideally, I would like to achieve somehting like this in css file:

      .my-cool-class {
      -fx-my-first-public-field: "Something";
      -fx-my-second-public-field: "Something";
      }

      If it is possible, could someone please provide a sample (using Control, Skin / SkinBase and Behavior) ?
      All my attempts failed.

      Thanks,
      Adrian