Initial commit

This commit is contained in:
2021-02-12 22:25:41 +01:00
commit 61e34a3cdf
9 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package app;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
/**
* Boilerplate function to launch the application
*/
public static void main(String[] args) {
launch(args);
}
/**
* The entrypoint of the application
* @param window The primary window of the application
*/
@Override
public void start(Stage window) throws IOException {
window.setTitle("Hello world");
Parent document = FXMLLoader.load(getClass().getResource("./MainView.fxml"));
Scene scene = new Scene(document);
window.setScene(scene);
window.show();
}
}

View File

@@ -0,0 +1,10 @@
package app;
/**
* MainController
* Might not be needed. Not sure yet.
*/
public class MainController {
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.net.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<VBox>
<children>
<Label text="Hello world!"/>
</children>
</VBox>

View File

@@ -0,0 +1,10 @@
package app.model;
/**
* Data model of the application
*/
public class Model {
private String text;
}

View File

@@ -0,0 +1,8 @@
module app {
requires javafx.base;
requires javafx.controls;
requires javafx.fxml;
requires javafx.graphics;
exports app;
}