Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have node "Text" and i need change color from CSS. I am trying
-fx-text-fill: black;
but it doesn`t work. Can anyone help? I think, that there is another property for "Text" node, but i cant find it.
setStyle(...)
-fx-fill use linear-gradient try this...
linear-gradient
txt.setStyle(" -fx-font: 100px Tahoma; -fx-fill: linear-gradient(from 0% 0% to 100% 200%, repeat, red 0%, red 50%)");
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
setStyle(...)show the code, or if are you skinning it using a custom CSS file, show the code and the complete CSS fragment in use.