Erster Versuch mit Screen
This commit is contained in:
1 parent
319ceab4d2
commit
9938c3c239
16 files changed
+31
-22
No files matched your search
@@ -2,7 +2,11 @@ package com.example.happy_bird;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.image.*;
|
||||
import javafx.scene.layout.*;
|
||||
import javafx.scene.paint.*;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -16,8 +20,8 @@ public class HappyBirdMain extends Application {
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("happyBird.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||
stage.setTitle("Hello!");
|
||||
Scene scene = new Scene(fxmlLoader.load(), 578, 700);
|
||||
stage.setTitle("HappyBird");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user