Yes. There is example but it requires me to call method getChildren. The problem is when to call it if I cannot register to change event on expandProperty.
But this is resolvable if I subclas TreeCell and override method setOnMouseClick.
The more weird problems for me were posted recently in this forum here and here.
But one more concern is how to style text of Tooltip. In swing I used html for that but what to use in JavaFX?
> But one more concern is how to style text of Tooltip. In swing I used html for that but what to use in JavaFX?
Please ask additional questions in new threads.
To style the content of a Tooltip, use any of the following techniques.
a) Use Java 8 and set the graphic of the Tooltip to a TextFlow.
b) In any Java version, set the graphic to a WebView instance into which you load html.
c) In any Java version, set the graphic to an arbitrary Node in which you can place any Java content you want.
d) Use cssto style the Tooltip content.
I chose WebView and I have it displayed well with basic html.
One more question is how to tell javafx.scene.control.Tooltip to stay visible for longer time and
stay visible while mouse is inside tooltip.
How to control duration after which particular Tooltip is shown?