exdunepilot
7 years agoContributor
Finding the Text Color in a JavaFX Tooltip & CSS
Normally we can find the text colors in our JavaFX objects using methods such as getBackground(), getForeground, getEffect(), getStyle(), getFill() etc. But the Tooltip JavaFX object is different and we cannot get to any color value (and it really doesn't matter the type of value such as RGB, hex, etc. any color value would do!).
We set the tooltip in CSS using the typical "fx-text-fill: black." I believe part of the problem is that Tooltip.getText() returns a text string versus a Text object.
Any suggestions?
TIA.