B4J Question How to style containers / controls

mrossen

Active Member
Licensed User
Longtime User
Hi,

Have any figured out how to change the style of ex. a pane or a button?

In JavaFX Studio is there at box called "style" where i can put in ex.

B4X:
.pane {
    -fx-background-color: #8fbc8f;
}

but it changes nothing.

I also would like to make a stylesheet file for my layout. I think thats is possible, but don't know how

Mogens
 

mrossen

Active Member
Licensed User
Longtime User
Hi again,

I found the solution to the first question,

Just use (or any other css ):

B4X:
-fx-background-color: #8fbc8f;

in the style box.
 
Upvote 0
Top