fix2
This commit is contained in:
parent
3c52879df9
commit
cccf7de2d5
2 changed files with 26 additions and 24 deletions
|
@ -12,7 +12,7 @@
|
|||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.ShopController">
|
||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.ShopController">
|
||||
<top>
|
||||
<HBox id="header" alignment="CENTER" prefHeight="60.0" prefWidth="631.0" spacing="20.0" styleClass="header" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
|
@ -23,8 +23,8 @@
|
|||
<Pane HBox.hgrow="ALWAYS" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<Button id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" />
|
||||
<Button id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" />
|
||||
<Button id="cartBtn" fx:id="cartBtn" mnemonicParsing="false" onAction="#handleCartButton" styleClass="cartBtn" text="Cart" />
|
||||
<Button id="loginBtn" fx:id="loginBtn" mnemonicParsing="false" onAction="#handleLoginButton" styleClass="loginBtn" text="Login" />
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
|
||||
|
@ -51,7 +51,7 @@
|
|||
<VBox id="cardDiv1" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="Lord of the Rings" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn1" mnemonicParsing="false" onAction="#handleAddToCartButton1" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A high-fantasy epic by J.R.R. Tolkien. The story follows the journey of Frodo Baggins and his companions as they attempt to destroy the One Ring and defeat the Dark Lord Sauron." wrapText="true">
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
|
@ -65,7 +65,7 @@
|
|||
<VBox id="cardDiv2" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Wheel of Time" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn2" mnemonicParsing="false" onAction="#handleAddToCartButton2" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A sprawling epic fantasy series by Robert Jordan. It follows the journey of Rand al'Thor as he struggles to control his newfound powers and faces the ultimate battle between light and shadow." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -76,7 +76,7 @@
|
|||
<VBox id="cardDiv3" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="2">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Chronicles of Narnia" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn3" mnemonicParsing="false" onAction="#handleAddToCartButton3" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A classic series by C.S. Lewis. The Chronicles of Narnia explores the adventures of children who discover a magical world, Narnia, and become part of its struggle against the forces of evil." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -87,7 +87,7 @@
|
|||
<VBox id="cardDiv4" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="3">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Earthsea Cycle" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn4" mnemonicParsing="false" onAction="#handleAddToCartButton4" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A fantasy series by Ursula K. Le Guin. The Earthsea Cycle follows Ged, a young wizard, as he embarks on a journey of self-discovery and learns the true meaning of power." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -98,7 +98,7 @@
|
|||
<VBox id="cardDiv5" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The First Law Trilogy" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn5" mnemonicParsing="false" onAction="#handleAddToCartButton5" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A dark fantasy series by Joe Abercrombie. It focuses on a group of characters navigating a brutal world, where honor and loyalty are tested by betrayal and violence." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -109,7 +109,7 @@
|
|||
<VBox id="cardDiv6" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Kingkiller Chronicle" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn6" mnemonicParsing="false" onAction="#handleAddToCartButton6" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A tale of magic and music by Patrick Rothfuss. The series follows Kvothe, a legendary figure, as he recounts his life story filled with adventures, heartbreaks, and personal struggles." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -120,7 +120,7 @@
|
|||
<VBox id="cardDiv7" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="2" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Mistborn Series" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn7" mnemonicParsing="false" onAction="#handleAddToCartButton7" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A magic-based series by Brandon Sanderson. Set in a world where ash falls from the sky, the series follows Vin, a young woman who discovers her incredible magical abilities and joins a group of rebels." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -131,11 +131,12 @@
|
|||
<VBox id="cardDiv8" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="3" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Stormlight Archive" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn8" mnemonicParsing="false" onAction="#handleAddToCartButton8" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A high-fantasy epic by Brandon Sanderson. The series explores the lives of several characters on the Shattered Plains, as they fight to survive and uncover a dark secret that threatens their world." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin></TextArea>
|
||||
</VBox.margin>
|
||||
</TextArea>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.ShopController">
|
||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.ShopController">
|
||||
<top>
|
||||
<HBox id="header" alignment="CENTER" prefHeight="60.0" prefWidth="631.0" spacing="20.0" styleClass="header" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
|
@ -23,8 +23,8 @@
|
|||
<Pane HBox.hgrow="ALWAYS" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<Button id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" />
|
||||
<Button id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" />
|
||||
<Button id="cartBtn" fx:id="cartBtn" mnemonicParsing="false" onAction="#handleCartButton" styleClass="cartBtn" text="Cart" />
|
||||
<Button id="loginBtn" fx:id="loginBtn" mnemonicParsing="false" onAction="#handleLoginButton" styleClass="loginBtn" text="Login" />
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
|
||||
|
@ -51,7 +51,7 @@
|
|||
<VBox id="cardDiv1" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="Lord of the Rings" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn1" mnemonicParsing="false" onAction="#handleAddToCartButton1" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A high-fantasy epic by J.R.R. Tolkien. The story follows the journey of Frodo Baggins and his companions as they attempt to destroy the One Ring and defeat the Dark Lord Sauron." wrapText="true">
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
|
@ -65,7 +65,7 @@
|
|||
<VBox id="cardDiv2" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Wheel of Time" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn2" mnemonicParsing="false" onAction="#handleAddToCartButton2" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A sprawling epic fantasy series by Robert Jordan. It follows the journey of Rand al'Thor as he struggles to control his newfound powers and faces the ultimate battle between light and shadow." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -76,7 +76,7 @@
|
|||
<VBox id="cardDiv3" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="2">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Chronicles of Narnia" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn3" mnemonicParsing="false" onAction="#handleAddToCartButton3" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A classic series by C.S. Lewis. The Chronicles of Narnia explores the adventures of children who discover a magical world, Narnia, and become part of its struggle against the forces of evil." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -87,7 +87,7 @@
|
|||
<VBox id="cardDiv4" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="3">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Earthsea Cycle" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn4" mnemonicParsing="false" onAction="#handleAddToCartButton4" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A fantasy series by Ursula K. Le Guin. The Earthsea Cycle follows Ged, a young wizard, as he embarks on a journey of self-discovery and learns the true meaning of power." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -98,7 +98,7 @@
|
|||
<VBox id="cardDiv5" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The First Law Trilogy" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn5" mnemonicParsing="false" onAction="#handleAddToCartButton5" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A dark fantasy series by Joe Abercrombie. It focuses on a group of characters navigating a brutal world, where honor and loyalty are tested by betrayal and violence." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -109,7 +109,7 @@
|
|||
<VBox id="cardDiv6" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Kingkiller Chronicle" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn6" mnemonicParsing="false" onAction="#handleAddToCartButton6" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A tale of magic and music by Patrick Rothfuss. The series follows Kvothe, a legendary figure, as he recounts his life story filled with adventures, heartbreaks, and personal struggles." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -120,7 +120,7 @@
|
|||
<VBox id="cardDiv7" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="2" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Mistborn Series" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn7" mnemonicParsing="false" onAction="#handleAddToCartButton7" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A magic-based series by Brandon Sanderson. Set in a world where ash falls from the sky, the series follows Vin, a young woman who discovers her incredible magical abilities and joins a group of rebels." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
@ -131,11 +131,12 @@
|
|||
<VBox id="cardDiv8" prefHeight="200.0" prefWidth="100.0" styleClass="cardDiv" GridPane.columnIndex="3" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<Label id="cardTitel" styleClass="cardTitel" text="The Stormlight Archive" />
|
||||
<Button id="cardBtn" mnemonicParsing="false" styleClass="cardBtn" text="Add to Cart" />
|
||||
<Button id="cardBtn" fx:id="cardBtn8" mnemonicParsing="false" onAction="#handleAddToCartButton8" styleClass="cardBtn" text="Add to Cart" />
|
||||
<TextArea id="cardText" editable="false" prefRowCount="4" styleClass="cardText" text="Description: A high-fantasy epic by Brandon Sanderson. The series explores the lives of several characters on the Shattered Plains, as they fight to survive and uncover a dark secret that threatens their world." wrapText="true">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin></TextArea>
|
||||
</VBox.margin>
|
||||
</TextArea>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
|
|
Loading…
Reference in a new issue