diff --git a/javafx-fxml-example/pom.xml b/javafx-fxml-example/pom.xml index 2e6a743..9fb9cca 100644 --- a/javafx-fxml-example/pom.xml +++ b/javafx-fxml-example/pom.xml @@ -1,29 +1,46 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + io.github.kennethfan study 1.0-SNAPSHOT + javafx-fxml-example + jar + JavaFX FXML Example + A JavaFX application example using FXML for UI design + + 17 17 UTF-8 + UTF-8 17 io.github.kennethfan.MainApp + 3.6.0 + 0.0.8 + + io.github.kennethfan common-util + + org.openjfx javafx-controls @@ -34,42 +51,96 @@ javafx-fxml ${javafx.version} + + org.openjfx + javafx-graphics + ${javafx.version} + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${maven.compiler.source} + ${maven.compiler.target} + ${project.build.sourceEncoding} + + + + + + org.apache.maven.plugins + maven-assembly-plugin + ${maven-assembly-plugin.version} + + + jar-with-dependencies + + + + ${main.class} + true + + + false + + + + make-assembly + package + + single + + + + + + org.openjfx javafx-maven-plugin - 0.0.8 + ${javafx-maven-plugin.version} ${main.class} + + + + + + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + + ${project.build.sourceEncoding} - - - - jpackage - - - - org.openjfx - javafx-maven-plugin - 0.0.8 - - ${main.class} - ${project.artifactId} - ${project.artifactId} - ${project.artifactId} - true - true - true - - - - - - - + + + + src/main/resources + true + + **/*.properties + **/*.xml + **/*.fxml + **/*.css + + + + + \ No newline at end of file diff --git a/javafx-fxml-example/src/main/java/io/github/kennethfan/model/User.java b/javafx-fxml-example/src/main/java/io/github/kennethfan/model/User.java index 8059ba6..a290015 100644 --- a/javafx-fxml-example/src/main/java/io/github/kennethfan/model/User.java +++ b/javafx-fxml-example/src/main/java/io/github/kennethfan/model/User.java @@ -1,15 +1,31 @@ package io.github.kennethfan.model; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.Setter; - -@Setter -@Getter -@AllArgsConstructor public class User { private String username; private String password; + + public User(String username, String password) { + this.username = username; + this.password = password; + } + + public String getUsername() { + return username; + } + + public User setUsername(String username) { + this.username = username; + return this; + } + + public String getPassword() { + return password; + } + + public User setPassword(String password) { + this.password = password; + return this; + } }