How can I set a title or a text that appears above a button when I hover it with the mouse?
The Tooltip class is what you are looking for.
Example for a simple Tooltip
Button button = new Button("Hover Me");
button.setTooltip(new Tooltip("Tooltip for Button"));
You can also customize your Tooltips: CSS Reference for Tooltip.
Example for a styled Tooltip
Button button = new Button();
button.setText("Hover Me!");
Tooltip tt = new Tooltip();
tt.setText("Text on Hover");
tt.setStyle("-fx-font: normal bold 4 Langdon; "
+ "-fx-base: #AE3522; "
+ "-fx-text-fill: orange;");
button.setTooltip(tt);