diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8e6a9f6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "☕ TestMainFx", + "request": "launch", + "mainClass": "lodge.TestMainFx", + "projectName": "reservationsystem", + "vmArgs": " --module-path ./libs:. --add-modules ALL-MODULE-PATH --enable-native-access=javafx.graphics -Dcom.sun.management.jmxremote=false -Djava.awt.headless=true -XX:+DisableAttachMechanism", + "cwd": "${workspaceFolder}", + "console": "integratedTerminal" + }, + { + "type": "java", + "name": "☕ main", + "request": "launch", + "mainClass": "lodge.main", + "projectName": "reservationsystem", + "vmArgs": "-Dcom.sun.management.jmxremote=false -Djava.awt.headless=true -XX:+DisableAttachMechanism", + "cwd": "${workspaceFolder}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0d6df7f..c27b511 100644 --- a/build.gradle +++ b/build.gradle @@ -9,8 +9,12 @@ plugins { id 'java' id 'application' + id 'org.openjfx.javafxplugin' version '0.1.0' } +group = 'lodge' +version = '1.0' + // Apply a specific Java toolchain to ease working on different environments. java { toolchain { @@ -42,10 +46,20 @@ repositories { fileTree(dir:'libs', include:'*.jar') } +javafx { + modules = [ 'javafx.controls', 'javafx.fxml' ] +} + dependencies { //https://mvnrepository.com/artifact/com.google.code.gson/gson implementation 'com.google.code.gson:gson:2.13.2' + implementation 'org.openjfx:javafx-base:24.0.1' + implementation 'org.openjfx:javafx-fxml:24.0.1' + implementation 'org.openjfx:javafx-controls:24.0.1' + implementation 'org.openjfx:javafx-graphics:24.0.1' + implementation 'org.openjfx:javafx-web:24.0.1' + } jar { diff --git a/libs/javafx-base-24.0.1-linux.jar b/libs/javafx-base-24.0.1-linux.jar new file mode 100644 index 0000000..0414854 Binary files /dev/null and b/libs/javafx-base-24.0.1-linux.jar differ diff --git a/libs/javafx-base-24.0.1.jar b/libs/javafx-base-24.0.1.jar new file mode 100644 index 0000000..4902458 Binary files /dev/null and b/libs/javafx-base-24.0.1.jar differ diff --git a/libs/javafx-controls-24.0.1-linux.jar b/libs/javafx-controls-24.0.1-linux.jar new file mode 100644 index 0000000..bbb345e Binary files /dev/null and b/libs/javafx-controls-24.0.1-linux.jar differ diff --git a/libs/javafx-controls-24.0.1.jar b/libs/javafx-controls-24.0.1.jar new file mode 100644 index 0000000..42ccba3 Binary files /dev/null and b/libs/javafx-controls-24.0.1.jar differ diff --git a/libs/javafx-fxml-24.0.1-linux.jar b/libs/javafx-fxml-24.0.1-linux.jar new file mode 100644 index 0000000..d4704fd Binary files /dev/null and b/libs/javafx-fxml-24.0.1-linux.jar differ diff --git a/libs/javafx-fxml-24.0.1.jar b/libs/javafx-fxml-24.0.1.jar new file mode 100644 index 0000000..f92c2d3 Binary files /dev/null and b/libs/javafx-fxml-24.0.1.jar differ diff --git a/libs/javafx-graphics-24.0.1-linux.jar b/libs/javafx-graphics-24.0.1-linux.jar new file mode 100644 index 0000000..0914141 Binary files /dev/null and b/libs/javafx-graphics-24.0.1-linux.jar differ diff --git a/libs/javafx-graphics-24.0.1.jar b/libs/javafx-graphics-24.0.1.jar new file mode 100644 index 0000000..8e95a08 Binary files /dev/null and b/libs/javafx-graphics-24.0.1.jar differ diff --git a/libs/javafx-media-24.0.1-sources.jar b/libs/javafx-media-24.0.1-sources.jar new file mode 100644 index 0000000..579abf2 Binary files /dev/null and b/libs/javafx-media-24.0.1-sources.jar differ diff --git a/libs/javafx-web-24.0.1-linux.jar b/libs/javafx-web-24.0.1-linux.jar new file mode 100644 index 0000000..75112fc Binary files /dev/null and b/libs/javafx-web-24.0.1-linux.jar differ diff --git a/libs/javafx-web-24.0.1.jar b/libs/javafx-web-24.0.1.jar new file mode 100644 index 0000000..2dddf04 Binary files /dev/null and b/libs/javafx-web-24.0.1.jar differ diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF index b934161..62757ad 100644 --- a/src/META-INF/MANIFEST.MF +++ b/src/META-INF/MANIFEST.MF @@ -2,4 +2,4 @@ Manifest-Version: 1.0 Main-Class: lodge.TestReservations Implementation-Title: lodge.reservationsystem Implementation-Version: 1.0 -Class-Path: lodge.reservationsystem com.google.gson . \ No newline at end of file +Class-Path: lodge.reservationsystem com.google.gson avafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web . \ No newline at end of file diff --git a/src/main/java/lodge/TestMainFx.java b/src/main/java/lodge/TestMainFx.java new file mode 100644 index 0000000..01743be --- /dev/null +++ b/src/main/java/lodge/TestMainFx.java @@ -0,0 +1,23 @@ +package lodge; + +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.stage.Stage; +import javafx.scene.control.Label; +import javafx.scene.layout.StackPane; + +public class TestMainFx extends Application{ + @Override + public void start(Stage primaryStage) { + primaryStage.setTitle("Lodge ReservationSystem"); + Scene scene = new Scene(new StackPane(new Label("Hello World!")), 800, 600); + primaryStage.setScene(scene); + primaryStage.show(); + } + + public static void main(String[] args) { + launch(args); + } + + +} diff --git a/src/resources/acc-A45098176.json b/src/resources/acc-A45098176.json index 3438597..f0bc6f8 100644 --- a/src/resources/acc-A45098176.json +++ b/src/resources/acc-A45098176.json @@ -1 +1 @@ -{ "Account":{"account_number": "A45098176","phone_number": "701-456-7890","mailing_address": { "Address":{"street": "10 wilco ave","city": "wilco","state": "WY","zip": "82801"}},"email_address": { "EmailAddress":{"email": "wilco@wyommin.net"}},"reservations":[]}} \ No newline at end of file +{ "Account":{"account_number": "A45098176","phone_number": "701-456-7890","mailing_address": { "Address":{"street": "10 wilco ave","city": "wilco","state": "WY","zip": "82801"}},"email_address": { "EmailAddress":{"email": "wilco@wyommin.net"}},"reservations":[{"CabinReservation":{"reservation_number":"R0535276622"}},{"HouseReservation":{"reservation_number":"R0499811708"}}]}} \ No newline at end of file