Skip to content

Commit

Permalink
Fix: Abort button works
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 16, 2026
1 parent 033b242 commit b67c102
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions helpmehelpapplication/src/main/resources/fxml/donationPage.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,15 @@
</Rectangle>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="WHITE" height="32.0" stroke="BLACK" strokeLineCap="ROUND" strokeType="OUTSIDE" translateY="-70.0" width="162.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="WHITE" height="32.0" stroke="BLACK" strokeLineCap="ROUND" strokeType="OUTSIDE" width="162.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="WHITE" height="25.0" stroke="BLACK" strokeLineCap="ROUND" strokeType="OUTSIDE" translateX="-130.0" translateY="100.0" width="64.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Rectangle>
<TextField fx:id="donatioAmount" alignment="CENTER" maxWidth="-Infinity" prefHeight="26.0" prefWidth="162.0" promptText="Enter amount" translateY="50.0" StackPane.alignment="CENTER" />
<Label fx:id="CharityName" text="[Charity Name]" translateY="-70.0" />
<Label alignment="CENTER" text="Abort" translateX="-130.0" translateY="100.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Label>
<Label text="Enter Donation Amount:" />
<Button alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#Donate" prefHeight="37.0" prefWidth="165.0" style="-fx-background-color: #2E7D32;" text="Donate" textFill="WHITE" translateY="100.0" />
<Button mnemonicParsing="false" onAction="#switchToCharityPage" style="-fx-background-color: #ff0f0f; -fx-text-fill: #ffffff;" text="Abort" translateX="-130.0" translateY="100.0">
<padding>
<Insets bottom="10.0" left="20.0" right="20.0" top="10.0" />
</padding>
</Button>
</children>
</StackPane>
</children>
Expand Down

0 comments on commit b67c102

Please sign in to comment.