diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..212d71d --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +VPR_JavaFX \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..669811f --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml b/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml new file mode 100644 index 0000000..f854ab0 --- /dev/null +++ b/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_7_1.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_7_1.xml new file mode 100644 index 0000000..cbbc09f --- /dev/null +++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_7_1.xml b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_7_1.xml new file mode 100644 index 0000000..f17fef7 --- /dev/null +++ b/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_7_1.xml b/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_7_1.xml new file mode 100644 index 0000000..1ded6d5 --- /dev/null +++ b/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_7_1.xml b/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_7_1.xml new file mode 100644 index 0000000..983d973 --- /dev/null +++ b/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_7_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_base_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_base_17_0_0_1.xml new file mode 100644 index 0000000..5c11c6a --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_base_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_base_win_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_base_win_17_0_0_1.xml new file mode 100644 index 0000000..653ec18 --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_base_win_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_controls_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_controls_17_0_0_1.xml new file mode 100644 index 0000000..c0c15bf --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_controls_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_controls_win_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_controls_win_17_0_0_1.xml new file mode 100644 index 0000000..c329904 --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_controls_win_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_fxml_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_fxml_17_0_0_1.xml new file mode 100644 index 0000000..82530a9 --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_fxml_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_fxml_win_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_fxml_win_17_0_0_1.xml new file mode 100644 index 0000000..b881310 --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_fxml_win_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_graphics_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_graphics_17_0_0_1.xml new file mode 100644 index 0000000..54557ba --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_graphics_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_openjfx_javafx_graphics_win_17_0_0_1.xml b/.idea/libraries/Maven__org_openjfx_javafx_graphics_win_17_0_0_1.xml new file mode 100644 index 0000000..f3854d0 --- /dev/null +++ b/.idea/libraries/Maven__org_openjfx_javafx_graphics_win_17_0_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml b/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml new file mode 100644 index 0000000..fbc1b16 --- /dev/null +++ b/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..e8d124d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..401e3ec --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/VPR_JavaFX.iml b/VPR_JavaFX.iml new file mode 100644 index 0000000..2fe0a99 --- /dev/null +++ b/VPR_JavaFX.iml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..4df0b03 --- /dev/null +++ b/pom.xml @@ -0,0 +1,70 @@ + + + 4.0.0 + + com.example + VPR_JavaFX + 1.0-SNAPSHOT + VPR_JavaFX + + + UTF-8 + 5.7.1 + + + + + org.openjfx + javafx-controls + 17.0.0.1 + + + org.openjfx + javafx-fxml + 17.0.0.1 + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 17 + 17 + + + + org.openjfx + javafx-maven-plugin + 0.0.7 + + + + default-cli + + com.example.vpr_javafx/com.example.vpr_javafx.HelloApplication + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/example/vpr_javafx/HelloApplication.java b/src/main/java/com/example/vpr_javafx/HelloApplication.java new file mode 100644 index 0000000..055f5f5 --- /dev/null +++ b/src/main/java/com/example/vpr_javafx/HelloApplication.java @@ -0,0 +1,23 @@ +package com.example.vpr_javafx; + +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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/example/vpr_javafx/HelloController.java b/src/main/java/com/example/vpr_javafx/HelloController.java new file mode 100644 index 0000000..74e6b65 --- /dev/null +++ b/src/main/java/com/example/vpr_javafx/HelloController.java @@ -0,0 +1,14 @@ +package com.example.vpr_javafx; + +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!"); + } +} \ No newline at end of file diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..9985380 --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,8 @@ +module com.example.vpr_javafx { + requires javafx.controls; + requires javafx.fxml; + + + opens com.example.vpr_javafx to javafx.fxml; + exports com.example.vpr_javafx; +} \ No newline at end of file diff --git a/src/main/resources/com/example/vpr_javafx/hello-view.fxml b/src/main/resources/com/example/vpr_javafx/hello-view.fxml new file mode 100644 index 0000000..36780df --- /dev/null +++ b/src/main/resources/com/example/vpr_javafx/hello-view.fxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + +