mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-19 14:42:42 +00:00
Sync / Progress on dump
This commit is contained in:
23
Gui/src/main/java/com/volmit/gui/HelloApplication.java
Normal file
23
Gui/src/main/java/com/volmit/gui/HelloApplication.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.volmit.gui;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class HelloApplication extends Application {
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||
stage.setTitle("Hello!");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch();
|
||||
}
|
||||
}
|
||||
14
Gui/src/main/java/com/volmit/gui/HelloController.java
Normal file
14
Gui/src/main/java/com/volmit/gui/HelloController.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.volmit.gui;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Label;
|
||||
|
||||
public class HelloController {
|
||||
@FXML
|
||||
private Label welcomeText;
|
||||
|
||||
@FXML
|
||||
protected void onHelloButtonClick() {
|
||||
welcomeText.setText("Welcome to JavaFX Application!");
|
||||
}
|
||||
}
|
||||
16
Gui/src/main/java/module-info.java
Normal file
16
Gui/src/main/java/module-info.java
Normal file
@@ -0,0 +1,16 @@
|
||||
module org.repix.gui {
|
||||
requires javafx.controls;
|
||||
requires javafx.fxml;
|
||||
requires javafx.web;
|
||||
|
||||
requires org.controlsfx.controls;
|
||||
requires com.dlsc.formsfx;
|
||||
requires net.synedra.validatorfx;
|
||||
requires org.kordamp.ikonli.javafx;
|
||||
requires org.kordamp.bootstrapfx.core;
|
||||
requires eu.hansolo.tilesfx;
|
||||
requires com.almasb.fxgl.all;
|
||||
|
||||
opens com.volmit.gui to javafx.fxml;
|
||||
exports com.volmit.gui;
|
||||
}
|
||||
16
Gui/src/main/resources/com/volmit/gui/hello-view.fxml
Normal file
16
Gui/src/main/resources/com/volmit/gui/hello-view.fxml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.scene.shape.*?>
|
||||
|
||||
<VBox alignment="CENTER" prefHeight="632.0" prefWidth="1323.0" spacing="20.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.volmit.gui.HelloController">
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" blendMode="SRC_ATOP" fill="DODGERBLUE" height="200.0" stroke="BLACK" strokeType="INSIDE" width="183.0" />
|
||||
|
||||
<Label fx:id="welcomeText" />
|
||||
<Button onAction="#onHelloButtonClick" text="Hello!" />
|
||||
</VBox>
|
||||
Reference in New Issue
Block a user