From 0db36e9cf9ee2eec319b64484f83359fb1c77be9 Mon Sep 17 00:00:00 2001
From: Patrice Matz
Date: Mon, 30 Jul 2018 17:33:21 +0200
Subject: [PATCH] started gui
---
src/com/company/Main.java | 16 ++++++-
src/com/company/sample.fxml | 87 +++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+), 1 deletion(-)
create mode 100644 src/com/company/sample.fxml
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+