package piano;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class pro extends Application {
@Override
public void start(Stage primaryStage) {
Button btn = new Button();
btn.setText("音");
btn.setOnAction(new EventHandler() {
@Override
public void handle(ActionEvent event) {
oto p=new oto();
p.makedata();
}
});
StackPane root = new StackPane();
root.getChildren().add(btn);
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("Piano");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}