This commit is contained in:
Debucquoy Anthony 2023-02-27 00:52:52 +01:00
parent 4055f12fba
commit 6061b11430
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -11,14 +11,14 @@ import javafx.stage.Stage;
public class Controller extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("test");
Button btn = new Button("test");
btn.setOnAction(event -> System.out.println("hey"));
static final String APPLICATION_NAME = "Game Name";
@Override
public void start(Stage primaryStage){
primaryStage.setTitle(APPLICATION_NAME);
Group root = new Group();
root.getChildren().add(btn);
// Create the window here!
Scene scene = new Scene(root, 300,300);
primaryStage.setScene(scene);