Creates a Tooltip instance for the specified text.
Creates a Tooltip instance for the specified text. This method is called in the Java FX application thread. A concrete implementation can create a Tooltip instance based on the given text and customize it as desired.
the text of the tool tip
the newly created Tooltip instance
Definition of a trait for the creation of new tool tip objects.
In Java FX tool tips are in the responsibility of the Tooltip class. This class offers some enhanced capabilities, so an application may wish to use or customize them. This can be achieved by creating a custom implementation of this trait and passing it to the manager objects which create components supporting tooltips.