.
This commit is contained in:
parent
4055f12fba
commit
6061b11430
@ -11,14 +11,14 @@ import javafx.stage.Stage;
|
|||||||
|
|
||||||
public class Controller extends Application {
|
public class Controller extends Application {
|
||||||
|
|
||||||
@Override
|
static final String APPLICATION_NAME = "Game Name";
|
||||||
public void start(Stage primaryStage) throws Exception {
|
|
||||||
primaryStage.setTitle("test");
|
|
||||||
Button btn = new Button("test");
|
|
||||||
btn.setOnAction(event -> System.out.println("hey"));
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start(Stage primaryStage){
|
||||||
|
primaryStage.setTitle(APPLICATION_NAME);
|
||||||
Group root = new Group();
|
Group root = new Group();
|
||||||
root.getChildren().add(btn);
|
|
||||||
|
// Create the window here!
|
||||||
|
|
||||||
Scene scene = new Scene(root, 300,300);
|
Scene scene = new Scene(root, 300,300);
|
||||||
primaryStage.setScene(scene);
|
primaryStage.setScene(scene);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user