VPR-Frontend/hellofx/app/src/main/java/client/MainApplication.java

25 lines
648 B
Java
Raw Normal View History

package client;
2021-11-13 20:11:59 +01:00
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import res.RestController;
2021-11-13 20:11:59 +01:00
import java.io.IOException;
public class MainApplication extends Application {
2021-11-13 20:11:59 +01:00
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("main-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 1200, 800);
2021-11-13 20:11:59 +01:00
stage.setTitle("Hello!");
stage.setScene(scene);
stage.show();
2021-11-13 20:11:59 +01:00
}
public static void main(String[] args) {
launch();
}
}