javafx.scene.control.Tooltip
This node takes the attributes of the javafx.scene.control.Tooltip. see javafx.scene.control.Tooltip.
If the content is a JavaFX Node, then the Tooltip's graphic will be set to the JavaFX Node.
Used for showing additional information about a Control when the Control is hovered over by the mouse.
GroovyFX.start({
def sg = new SceneGraphBuilder();
sg.stage(
title: "Stage Frame",
x: 100, y: 100, width: 400, height:400,
visible: true,
style: "decorated",
onHidden: { println "Close"}
) {
scene(fill: hsb(128, 0.5, 0.5, 0.5), parent: group()) {
button (
layoutX: 25,
layoutY: 300,
text: "Press me"
) {
tooltip(text: "Demonstrates a tooltip on a Button control")
}
}
}
});
|