Thursday May 06, 2010

Changing colors of components

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.

More informations

 

About

NetBeans JavaFX Composer blog

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today