.
This commit is contained in:
		@ -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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user