help me lord

This commit is contained in:
sageTheDM 2025-01-13 15:13:03 +01:00
parent b6c8c6f5d6
commit b3d93010d6
8 changed files with 650 additions and 598 deletions

View file

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}

View file

@ -4,25 +4,37 @@
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>_javafx_website_task</artifactId> <artifactId>_javafx_website_task</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
<!-- JavaFX dependencies -->
<dependency> <dependency>
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId> <artifactId>javafx-controls</artifactId>
<version>13</version> <version>11</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId> <artifactId>javafx-fxml</artifactId>
<version>13</version> <version>11</version>
</dependency>
<!-- Jackson Databind for JSON handling -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<!-- Maven Compiler Plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
@ -31,14 +43,14 @@
<release>11</release> <release>11</release>
</configuration> </configuration>
</plugin> </plugin>
<!-- JavaFX Maven Plugin -->
<plugin> <plugin>
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId> <artifactId>javafx-maven-plugin</artifactId>
<version>0.0.6</version> <version>0.0.6</version>
<executions> <executions>
<execution> <execution>
<!-- Default configuration for running -->
<!-- Usage: mvn clean javafx:run -->
<id>default-cli</id> <id>default-cli</id>
<configuration> <configuration>
<mainClass>com.example.App</mainClass> <mainClass>com.example.App</mainClass>

View file

@ -0,0 +1,25 @@
package com.example;
public class Account {
private String name;
private String surname;
private String email;
private String phone;
private String street;
private String city;
private String cityCode;
// Getters and setters for all fields
public Account(String name, String surname, String email, String phone, String street, String city,
String cityCode) {
this.name = name;
this.surname = surname;
this.email = email;
this.phone = phone;
this.street = street;
this.city = city;
this.cityCode = cityCode;
}
// Getters and setters...
}

View file

@ -5,7 +5,7 @@
-fx-padding: 20; -fx-padding: 20;
-fx-hgap: 20; -fx-hgap: 20;
-fx-vgap: 20; -fx-vgap: 20;
-fx-background-image: url('images/background'); -fx-background-image: url("images/background");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-position: center center; -fx-background-position: center center;
-fx-background-blend-mode: overlay; -fx-background-blend-mode: overlay;
@ -84,7 +84,6 @@
-fx-min-height: 230; -fx-min-height: 230;
} }
.cardTitel { .cardTitel {
-fx-font-size: 18px; -fx-font-size: 18px;
-fx-font-weight: 600; -fx-font-weight: 600;
@ -99,56 +98,56 @@
} }
#cardDiv1 { #cardDiv1 {
-fx-background-image: url('images/lotr.jpg'); -fx-background-image: url("images/lotr.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv2 { #cardDiv2 {
-fx-background-image: url('images/wheel.jpg'); -fx-background-image: url("images/wheel.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv3 { #cardDiv3 {
-fx-background-image: url('images/narnia.jpg'); -fx-background-image: url("images/narnia.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv4 { #cardDiv4 {
-fx-background-image: url('images/earthsea.jpg'); -fx-background-image: url("images/earthsea.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv5 { #cardDiv5 {
-fx-background-image: url('images/theFirstLaw.jpg'); -fx-background-image: url("images/theFirstLaw.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv6 { #cardDiv6 {
-fx-background-image: url('images/kingkiller.jpeg'); -fx-background-image: url("images/kingkiller.jpeg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv7 { #cardDiv7 {
-fx-background-image: url('images/mistborn.jpg'); -fx-background-image: url("images/mistborn.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv8 { #cardDiv8 {
-fx-background-image: url('images/stormlight.jpg'); -fx-background-image: url("images/stormlight.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -273,7 +272,7 @@
-fx-background-color: rgba(156, 89, 182, 0.7); -fx-background-color: rgba(156, 89, 182, 0.7);
} }
.paypal { .paypal {
-fx-background-image: url('icons/paypal.png'); -fx-background-image: url("icons/paypal.png");
-fx-background-size: contain; /* Ensures the whole image is shown */ -fx-background-size: contain; /* Ensures the whole image is shown */
-fx-background-repeat: no-repeat; /* Prevents the image from repeating */ -fx-background-repeat: no-repeat; /* Prevents the image from repeating */
-fx-background-position: center; /* Centers the image */ -fx-background-position: center; /* Centers the image */
@ -282,7 +281,7 @@
} }
.bill { .bill {
-fx-background-image: url('icons/bill.png'); -fx-background-image: url("icons/bill.png");
-fx-background-size: contain; -fx-background-size: contain;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -291,7 +290,7 @@
} }
.creditCard { .creditCard {
-fx-background-image: url('icons/credit.png'); -fx-background-image: url("icons/credit.png");
-fx-background-size: contain; -fx-background-size: contain;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -301,7 +300,12 @@
/* Table Styling */ /* Table Styling */
.table-view { .table-view {
-fx-background-color: rgba(156, 89, 182, 0.7); /* Background color with transparency */ -fx-background-color: rgba(
156,
89,
182,
0.7
); /* Background color with transparency */
-fx-border-color: #8e44ad; /* Border color */ -fx-border-color: #8e44ad; /* Border color */
-fx-border-width: 2px; /* Border thickness */ -fx-border-width: 2px; /* Border thickness */
-fx-padding: 10px; -fx-padding: 10px;
@ -334,7 +338,12 @@
/* Row Styling */ /* Row Styling */
.table-view .table-row-cell { .table-view .table-row-cell {
-fx-background-color: rgba(156, 89, 182, 0.3); /* Semi-transparent row background */ -fx-background-color: rgba(
156,
89,
182,
0.3
); /* Semi-transparent row background */
-fx-border-color: transparent; /* No border for rows */ -fx-border-color: transparent; /* No border for rows */
} }

View file

@ -5,7 +5,7 @@
-fx-padding: 20; -fx-padding: 20;
-fx-hgap: 20; -fx-hgap: 20;
-fx-vgap: 20; -fx-vgap: 20;
-fx-background-image: url('images/background'); -fx-background-image: url("images/background");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-position: center center; -fx-background-position: center center;
-fx-background-blend-mode: overlay; -fx-background-blend-mode: overlay;
@ -84,7 +84,6 @@
-fx-min-height: 230; -fx-min-height: 230;
} }
.cardTitel { .cardTitel {
-fx-font-size: 18px; -fx-font-size: 18px;
-fx-font-weight: 600; -fx-font-weight: 600;
@ -99,56 +98,56 @@
} }
#cardDiv1 { #cardDiv1 {
-fx-background-image: url('images/lotr.jpg'); -fx-background-image: url("images/lotr.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv2 { #cardDiv2 {
-fx-background-image: url('images/wheel.jpg'); -fx-background-image: url("images/wheel.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv3 { #cardDiv3 {
-fx-background-image: url('images/narnia.jpg'); -fx-background-image: url("images/narnia.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv4 { #cardDiv4 {
-fx-background-image: url('images/earthsea.jpg'); -fx-background-image: url("images/earthsea.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv5 { #cardDiv5 {
-fx-background-image: url('images/theFirstLaw.jpg'); -fx-background-image: url("images/theFirstLaw.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv6 { #cardDiv6 {
-fx-background-image: url('images/kingkiller.jpeg'); -fx-background-image: url("images/kingkiller.jpeg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv7 { #cardDiv7 {
-fx-background-image: url('images/mistborn.jpg'); -fx-background-image: url("images/mistborn.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
} }
#cardDiv8 { #cardDiv8 {
-fx-background-image: url('images/stormlight.jpg'); -fx-background-image: url("images/stormlight.jpg");
-fx-background-size: cover; -fx-background-size: cover;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -273,7 +272,7 @@
-fx-background-color: rgba(156, 89, 182, 0.7); -fx-background-color: rgba(156, 89, 182, 0.7);
} }
.paypal { .paypal {
-fx-background-image: url('icons/paypal.png'); -fx-background-image: url("icons/paypal.png");
-fx-background-size: contain; /* Ensures the whole image is shown */ -fx-background-size: contain; /* Ensures the whole image is shown */
-fx-background-repeat: no-repeat; /* Prevents the image from repeating */ -fx-background-repeat: no-repeat; /* Prevents the image from repeating */
-fx-background-position: center; /* Centers the image */ -fx-background-position: center; /* Centers the image */
@ -282,7 +281,7 @@
} }
.bill { .bill {
-fx-background-image: url('icons/bill.png'); -fx-background-image: url("icons/bill.png");
-fx-background-size: contain; -fx-background-size: contain;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -291,7 +290,7 @@
} }
.creditCard { .creditCard {
-fx-background-image: url('icons/credit.png'); -fx-background-image: url("icons/credit.png");
-fx-background-size: contain; -fx-background-size: contain;
-fx-background-repeat: no-repeat; -fx-background-repeat: no-repeat;
-fx-background-position: center; -fx-background-position: center;
@ -301,7 +300,12 @@
/* Table Styling */ /* Table Styling */
.table-view { .table-view {
-fx-background-color: rgba(156, 89, 182, 0.7); /* Background color with transparency */ -fx-background-color: rgba(
156,
89,
182,
0.7
); /* Background color with transparency */
-fx-border-color: #8e44ad; /* Border color */ -fx-border-color: #8e44ad; /* Border color */
-fx-border-width: 2px; /* Border thickness */ -fx-border-width: 2px; /* Border thickness */
-fx-padding: 10px; -fx-padding: 10px;
@ -334,7 +338,12 @@
/* Row Styling */ /* Row Styling */
.table-view .table-row-cell { .table-view .table-row-cell {
-fx-background-color: rgba(156, 89, 182, 0.3); /* Semi-transparent row background */ -fx-background-color: rgba(
156,
89,
182,
0.3
); /* Semi-transparent row background */
-fx-border-color: transparent; /* No border for rows */ -fx-border-color: transparent; /* No border for rows */
} }

View file

@ -1,8 +0,0 @@
com/example/CheckOutController.class
com/example/App.class
com/example/CartController.class
module-info.class
com/example/ShopController.class
com/example/RegisterController.class
com/example/LoginController.class
com/example/CartController$Item.class

View file

@ -1,7 +1,9 @@
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/Item.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/Account.java
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java /home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java