Monday May 31, 2010
Thursday May 06, 2010
By lukas on May 06, 2010
There is lot of documents describing how to change the color and look of components in JavaFX 1.3. However is there a simple way how to change it in JavaFX Composer? Of course!
Option 1 - changing a particular component
In component's Properties in Style category, provide the correct snippet of CSS that modifies this component.
E.g. -fx-background-color: red; for Button
or -fx-text-fill: red; to change hyperlink color.
Option 2 - provide CSS for whole design
Select the Scene node in Navigator. There is "Stylesheets" property where you can specify the path to your stylesheet.
NetBeans JavaFX Composer blog