import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Tooltip;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;

public class TestFx extends Application {

    @Override
    public void start(Stage stage) {
        HBox box = new HBox(5);
        for (int i = 0; i < 10; i++) {
            Button b = new Button("Button " + i);
            Tooltip t = new Tooltip("Tooltip " + i);
            Tooltip.install(b, t);
            box.getChildren().add(b);
        }

        Scene scene = new Scene(box, 600, 100);
        stage.setTitle("Popup Test");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
} 