diff --git a/src/com/company/Main.java b/src/com/company/Main.java index afef1c1..4a6b176 100644 --- a/src/com/company/Main.java +++ b/src/com/company/Main.java @@ -1,12 +1,26 @@ package com.company; +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.*; import java.awt.*; import java.util.ArrayList; -public class Main { +public class Main extends Application { + + @Override + public void start(Stage primaryStage) throws Exception{ + Parent root = FXMLLoader.load(getClass().getResource("sample.fxml")); + primaryStage.setTitle("Hello World"); + primaryStage.setScene(new Scene(root, 300, 275)); + primaryStage.show(); + } public static void main(String[] args) throws IOException { diff --git a/src/com/company/sample.fxml b/src/com/company/sample.fxml new file mode 100644 index 0000000..3edb7b9 --- /dev/null +++ b/src/com/company/sample.fxml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +