Forum Discussion
Marsha_R
Champion Level 3
A string is still a value that you can test against. Do you get the string "black" in this case?
exdunepilot
7 years agoContributor
Hi Marsha,
Thanks for the reply. We get the text "value" no problem or in other words, the content of the Tooltip which is of String type. However, we need to find the color of the text, black, white, red, blue, green etc. and that is not readily available. Generally with JavaFX these "colors" are returned in hex. We first found the problem when the Tooltip's default background was a tan color and the text was white. This made the content of the Tooltip essentially invisible to a user.