added basic
This commit is contained in:
commit
80f1275f63
23
src/main/java/at/ionas999/questioncatalog/App.java
Normal file
23
src/main/java/at/ionas999/questioncatalog/App.java
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package at.ionas999.questioncatalog;
|
||||||
|
|
||||||
|
import javafx.application.Application;
|
||||||
|
import javafx.fxml.FXMLLoader;
|
||||||
|
import javafx.scene.Scene;
|
||||||
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class App extends Application {
|
||||||
|
@Override
|
||||||
|
public void start(Stage stage) throws IOException {
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml"));
|
||||||
|
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||||
|
stage.setTitle("Hello!");
|
||||||
|
stage.setScene(scene);
|
||||||
|
stage.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
launch();
|
||||||
|
}
|
||||||
|
}
|
||||||
8
src/main/java/module-info.java
Normal file
8
src/main/java/module-info.java
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
module at.ionas999.questioncatalog {
|
||||||
|
requires javafx.controls;
|
||||||
|
requires javafx.fxml;
|
||||||
|
|
||||||
|
|
||||||
|
opens at.ionas999.questioncatalog to javafx.fxml;
|
||||||
|
exports at.ionas999.questioncatalog;
|
||||||
|
}
|
||||||
16
src/main/resources/at/ionas999/questioncatalog/main.fxml
Normal file
16
src/main/resources/at/ionas999/questioncatalog/main.fxml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml">
|
||||||
|
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
|
||||||
|
</padding>
|
||||||
|
|
||||||
|
<Label fx:id="welcomeText"/>
|
||||||
|
<Button text="Hello!"/>
|
||||||
|
</VBox>
|
||||||
Loading…
Reference in New Issue
Block a user