import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.paint.Color;

public class Test extends Application {
    @Override
    public void start(Stage stage) throws Exception {
        Tooltip tooltip = new Tooltip("This is a tooltip.");
        tooltip.getStyleClass().clear();
        tooltip.setStyle("-fx-background-color: black; -fx-text-fill: white;");

        Button button = new Button("Hover me");
        button.setTooltip(tooltip);

        Scene scene = new Scene(button);
        scene.setFill(Color.WHITE);

        stage.setScene(scene);
        stage.setWidth(600);
        stage.setHeight(600);
        stage.show();
    }
	
	public static void main(String args[])
	{
		launch(args);
	}
}