Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting Label Text for CSS

931470Apr 20 2012 — edited Apr 24 2012
Hi,

I am trying to set text on a label from a stylesheet. Example:

.myLabel {
-fx-text-fill: #654b00;
-fx-font-weight: bold;
-fx-padding: 5 10 5 10;
-fx-text: "HELP";
}

however this does not appear on my label. Does anyone have any ideas?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2012
Added on Apr 20 2012
6 comments
196 views