.
This commit is contained in:
parent
4055f12fba
commit
6061b11430
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user