help me lord
This commit is contained in:
parent
b6c8c6f5d6
commit
b3d93010d6
8 changed files with 650 additions and 598 deletions
3
Code/ost/JAVA-FX-PROJECT/.vscode/settings.json
vendored
Normal file
3
Code/ost/JAVA-FX-PROJECT/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"java.configuration.updateBuildConfiguration": "interactive"
|
||||
}
|
|
@ -4,25 +4,37 @@
|
|||
<groupId>com.example</groupId>
|
||||
<artifactId>_javafx_website_task</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- JavaFX dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-controls</artifactId>
|
||||
<version>13</version>
|
||||
<version>11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<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>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- Maven Compiler Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
@ -31,14 +43,14 @@
|
|||
<release>11</release>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- JavaFX Maven Plugin -->
|
||||
<plugin>
|
||||
<groupId>org.openjfx</groupId>
|
||||
<artifactId>javafx-maven-plugin</artifactId>
|
||||
<version>0.0.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<!-- Default configuration for running -->
|
||||
<!-- Usage: mvn clean javafx:run -->
|
||||
<id>default-cli</id>
|
||||
<configuration>
|
||||
<mainClass>com.example.App</mainClass>
|
||||
|
|
|
@ -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...
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
-fx-padding: 20;
|
||||
-fx-hgap: 20;
|
||||
-fx-vgap: 20;
|
||||
-fx-background-image: url('images/background');
|
||||
-fx-background-image: url("images/background");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-position: center center;
|
||||
-fx-background-blend-mode: overlay;
|
||||
|
@ -84,7 +84,6 @@
|
|||
-fx-min-height: 230;
|
||||
}
|
||||
|
||||
|
||||
.cardTitel {
|
||||
-fx-font-size: 18px;
|
||||
-fx-font-weight: 600;
|
||||
|
@ -99,56 +98,56 @@
|
|||
}
|
||||
|
||||
#cardDiv1 {
|
||||
-fx-background-image: url('images/lotr.jpg');
|
||||
-fx-background-image: url("images/lotr.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv2 {
|
||||
-fx-background-image: url('images/wheel.jpg');
|
||||
-fx-background-image: url("images/wheel.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv3 {
|
||||
-fx-background-image: url('images/narnia.jpg');
|
||||
-fx-background-image: url("images/narnia.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv4 {
|
||||
-fx-background-image: url('images/earthsea.jpg');
|
||||
-fx-background-image: url("images/earthsea.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv5 {
|
||||
-fx-background-image: url('images/theFirstLaw.jpg');
|
||||
-fx-background-image: url("images/theFirstLaw.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv6 {
|
||||
-fx-background-image: url('images/kingkiller.jpeg');
|
||||
-fx-background-image: url("images/kingkiller.jpeg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv7 {
|
||||
-fx-background-image: url('images/mistborn.jpg');
|
||||
-fx-background-image: url("images/mistborn.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv8 {
|
||||
-fx-background-image: url('images/stormlight.jpg');
|
||||
-fx-background-image: url("images/stormlight.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -273,7 +272,7 @@
|
|||
-fx-background-color: rgba(156, 89, 182, 0.7);
|
||||
}
|
||||
.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-repeat: no-repeat; /* Prevents the image from repeating */
|
||||
-fx-background-position: center; /* Centers the image */
|
||||
|
@ -282,7 +281,7 @@
|
|||
}
|
||||
|
||||
.bill {
|
||||
-fx-background-image: url('icons/bill.png');
|
||||
-fx-background-image: url("icons/bill.png");
|
||||
-fx-background-size: contain;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -291,7 +290,7 @@
|
|||
}
|
||||
|
||||
.creditCard {
|
||||
-fx-background-image: url('icons/credit.png');
|
||||
-fx-background-image: url("icons/credit.png");
|
||||
-fx-background-size: contain;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -301,7 +300,12 @@
|
|||
|
||||
/* Table Styling */
|
||||
.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-width: 2px; /* Border thickness */
|
||||
-fx-padding: 10px;
|
||||
|
@ -334,7 +338,12 @@
|
|||
|
||||
/* Row Styling */
|
||||
.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 */
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -5,7 +5,7 @@
|
|||
-fx-padding: 20;
|
||||
-fx-hgap: 20;
|
||||
-fx-vgap: 20;
|
||||
-fx-background-image: url('images/background');
|
||||
-fx-background-image: url("images/background");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-position: center center;
|
||||
-fx-background-blend-mode: overlay;
|
||||
|
@ -84,7 +84,6 @@
|
|||
-fx-min-height: 230;
|
||||
}
|
||||
|
||||
|
||||
.cardTitel {
|
||||
-fx-font-size: 18px;
|
||||
-fx-font-weight: 600;
|
||||
|
@ -99,56 +98,56 @@
|
|||
}
|
||||
|
||||
#cardDiv1 {
|
||||
-fx-background-image: url('images/lotr.jpg');
|
||||
-fx-background-image: url("images/lotr.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv2 {
|
||||
-fx-background-image: url('images/wheel.jpg');
|
||||
-fx-background-image: url("images/wheel.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv3 {
|
||||
-fx-background-image: url('images/narnia.jpg');
|
||||
-fx-background-image: url("images/narnia.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv4 {
|
||||
-fx-background-image: url('images/earthsea.jpg');
|
||||
-fx-background-image: url("images/earthsea.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv5 {
|
||||
-fx-background-image: url('images/theFirstLaw.jpg');
|
||||
-fx-background-image: url("images/theFirstLaw.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv6 {
|
||||
-fx-background-image: url('images/kingkiller.jpeg');
|
||||
-fx-background-image: url("images/kingkiller.jpeg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv7 {
|
||||
-fx-background-image: url('images/mistborn.jpg');
|
||||
-fx-background-image: url("images/mistborn.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
}
|
||||
|
||||
#cardDiv8 {
|
||||
-fx-background-image: url('images/stormlight.jpg');
|
||||
-fx-background-image: url("images/stormlight.jpg");
|
||||
-fx-background-size: cover;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -273,7 +272,7 @@
|
|||
-fx-background-color: rgba(156, 89, 182, 0.7);
|
||||
}
|
||||
.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-repeat: no-repeat; /* Prevents the image from repeating */
|
||||
-fx-background-position: center; /* Centers the image */
|
||||
|
@ -282,7 +281,7 @@
|
|||
}
|
||||
|
||||
.bill {
|
||||
-fx-background-image: url('icons/bill.png');
|
||||
-fx-background-image: url("icons/bill.png");
|
||||
-fx-background-size: contain;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -291,7 +290,7 @@
|
|||
}
|
||||
|
||||
.creditCard {
|
||||
-fx-background-image: url('icons/credit.png');
|
||||
-fx-background-image: url("icons/credit.png");
|
||||
-fx-background-size: contain;
|
||||
-fx-background-repeat: no-repeat;
|
||||
-fx-background-position: center;
|
||||
|
@ -301,7 +300,12 @@
|
|||
|
||||
/* Table Styling */
|
||||
.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-width: 2px; /* Border thickness */
|
||||
-fx-padding: 10px;
|
||||
|
@ -334,7 +338,12 @@
|
|||
|
||||
/* Row Styling */
|
||||
.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 */
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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/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/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/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
|
||||
|
|
Loading…
Reference in a new issue