gui updates
This commit is contained in:
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
build.gradle
14
build.gradle
@@ -9,8 +9,12 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'application'
|
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.
|
// Apply a specific Java toolchain to ease working on different environments.
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
@@ -42,10 +46,20 @@ repositories {
|
|||||||
fileTree(dir:'libs', include:'*.jar')
|
fileTree(dir:'libs', include:'*.jar')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
javafx {
|
||||||
|
modules = [ 'javafx.controls', 'javafx.fxml' ]
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
//https://mvnrepository.com/artifact/com.google.code.gson/gson
|
//https://mvnrepository.com/artifact/com.google.code.gson/gson
|
||||||
implementation 'com.google.code.gson:gson:2.13.2'
|
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 {
|
jar {
|
||||||
|
|||||||
BIN
libs/javafx-base-24.0.1-linux.jar
Normal file
BIN
libs/javafx-base-24.0.1-linux.jar
Normal file
Binary file not shown.
BIN
libs/javafx-base-24.0.1.jar
Normal file
BIN
libs/javafx-base-24.0.1.jar
Normal file
Binary file not shown.
BIN
libs/javafx-controls-24.0.1-linux.jar
Normal file
BIN
libs/javafx-controls-24.0.1-linux.jar
Normal file
Binary file not shown.
BIN
libs/javafx-controls-24.0.1.jar
Normal file
BIN
libs/javafx-controls-24.0.1.jar
Normal file
Binary file not shown.
BIN
libs/javafx-fxml-24.0.1-linux.jar
Normal file
BIN
libs/javafx-fxml-24.0.1-linux.jar
Normal file
Binary file not shown.
BIN
libs/javafx-fxml-24.0.1.jar
Normal file
BIN
libs/javafx-fxml-24.0.1.jar
Normal file
Binary file not shown.
BIN
libs/javafx-graphics-24.0.1-linux.jar
Normal file
BIN
libs/javafx-graphics-24.0.1-linux.jar
Normal file
Binary file not shown.
BIN
libs/javafx-graphics-24.0.1.jar
Normal file
BIN
libs/javafx-graphics-24.0.1.jar
Normal file
Binary file not shown.
BIN
libs/javafx-media-24.0.1-sources.jar
Normal file
BIN
libs/javafx-media-24.0.1-sources.jar
Normal file
Binary file not shown.
BIN
libs/javafx-web-24.0.1-linux.jar
Normal file
BIN
libs/javafx-web-24.0.1-linux.jar
Normal file
Binary file not shown.
BIN
libs/javafx-web-24.0.1.jar
Normal file
BIN
libs/javafx-web-24.0.1.jar
Normal file
Binary file not shown.
@@ -2,4 +2,4 @@ Manifest-Version: 1.0
|
|||||||
Main-Class: lodge.TestReservations
|
Main-Class: lodge.TestReservations
|
||||||
Implementation-Title: lodge.reservationsystem
|
Implementation-Title: lodge.reservationsystem
|
||||||
Implementation-Version: 1.0
|
Implementation-Version: 1.0
|
||||||
Class-Path: lodge.reservationsystem com.google.gson .
|
Class-Path: lodge.reservationsystem com.google.gson avafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web .
|
||||||
23
src/main/java/lodge/TestMainFx.java
Normal file
23
src/main/java/lodge/TestMainFx.java
Normal file
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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":[]}}
|
{ "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"}}]}}
|
||||||
Reference in New Issue
Block a user