Initial commit

This commit is contained in:
2022-02-06 23:22:01 -05:00
parent 282a7db125
commit 6a2986f45e
15 changed files with 455 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
module tech.nevets.jaml.jaml {
requires javafx.controls;
requires javafx.fxml;
requires javafx.web;
requires org.controlsfx.controls;
requires com.dlsc.formsfx;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.bootstrapfx.core;
requires eu.hansolo.tilesfx;
opens tech.nevets.jaml.jaml to javafx.fxml;
exports tech.nevets.jaml.jaml;
}

View File

@@ -0,0 +1,14 @@
package tech.nevets.jaml.jaml;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
public class Controller {
@FXML
private Label welcomeText;
@FXML
protected void onHelloButtonClick() {
welcomeText.setText("Welcome to JavaFX Application!");
}
}

View File

@@ -0,0 +1,23 @@
package tech.nevets.jaml.jaml;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class JAML extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(JAML.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();
}
}