Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.TilePane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="root" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="no.ntnu.idatt1002.demo.controller.MainMenu">
<ImageView fitHeight="719.0" fitWidth="1130.0" layoutY="-3.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../Images/backgroundMini.jpg" />
</image>
</ImageView>
<VBox alignment="TOP_CENTER" prefHeight="695.0" prefWidth="1100.0">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="164.0" prefWidth="1100.0">
<left>
<Pane prefWidth="175.0" BorderPane.alignment="CENTER">
<children>
Harry Linrui XU
committed
<Button fx:id="returnBtn" alignment="CENTER" layoutX="-2.0" layoutY="58.0" mnemonicParsing="false" onAction="#switchScene" text="Return to start">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Button>
</children>
</Pane>
</left>
<center>
<Label fx:id="title" text="BUDGET JANUARY" textAlignment="CENTER" BorderPane.alignment="CENTER">
<font>
<Font name="Lucida Console" size="48.0" />
</font>
</Label>
</center>
<right>
<Pane BorderPane.alignment="CENTER">
<children>
Harry Linrui XU
committed
<Label fx:id="daysLeftLbl" layoutX="27.0" layoutY="83.0" text="Days left: 31">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
<DatePicker fx:id="date" layoutX="-4.0" layoutY="55.0" prefWidth="175.0" />
</children>
</Pane>
</right>
<VBox.margin>
<Insets left="15.0" right="15.0" />
</VBox.margin>
<bottom>
<Label fx:id="balanceLbl" text="Balance: xxx" BorderPane.alignment="CENTER">
<font>
<Font name="Lucida Console" size="24.0" />
</font>
</Label>
</bottom>
</BorderPane>
Harry Linrui XU
committed
<BorderPane prefHeight="403.0" prefWidth="1131.0">
<top>
<StackPane BorderPane.alignment="CENTER">
<children>
Harry Linrui XU
committed
<ProgressBar fx:id="mainBar" prefHeight="35.0" prefWidth="750.0" progress="0.54">
<StackPane.margin>
<Insets top="5.0" />
</StackPane.margin>
</ProgressBar>
<Label fx:id="usageLbl" text="You have used xxx out of xxx this month">
<font>
<Font name="Lucida Console" size="12.0" />
</font>
Harry Linrui XU
committed
<StackPane.margin>
<Insets top="5.0" />
</StackPane.margin>
</Label>
</children>
</StackPane>
</top>
<center>
<GridPane maxWidth="750.0" minHeight="250.0" minWidth="750.0" prefHeight="300.0" prefWidth="750.0" BorderPane.alignment="CENTER">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="50.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="25.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<ProgressBar fx:id="foodBar" prefHeight="25.0" prefWidth="375.0" progress="0.37" GridPane.columnIndex="1" />
<ProgressBar fx:id="otherBar" prefHeight="25.0" prefWidth="375.0" progress="0.46" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<ProgressBar fx:id="bookBar" prefHeight="25.0" prefWidth="375.0" progress="0.19" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<ProgressBar fx:id="clothesBar" prefHeight="25.0" prefWidth="375.0" progress="0.76" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Pane>
<children>
<Label fx:id="foodLbl" alignment="CENTER_RIGHT" layoutX="78.0" layoutY="38.0" text="Food">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.rowIndex="3">
<children>
<Label fx:id="otherLbl" alignment="CENTER_RIGHT" layoutX="68.0" layoutY="39.0" text="Other ">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.rowIndex="2">
<children>
<Label fx:id="bookLbl" alignment="CENTER_RIGHT" layoutX="68.0" layoutY="36.0" text="Books ">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.rowIndex="1">
<children>
<Label fx:id="clothesLbl" alignment="CENTER_RIGHT" layoutX="65.0" layoutY="38.0" text="Clothes">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.columnIndex="2">
<children>
<Label alignment="CENTER_RIGHT" layoutX="58.0" layoutY="37.0" text="Left: 50">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.columnIndex="2" GridPane.rowIndex="3">
<children>
<Label alignment="CENTER_RIGHT" layoutX="60.0" layoutY="36.0" text="Left: 200">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.columnIndex="2" GridPane.rowIndex="2">
<children>
<Label alignment="CENTER_RIGHT" layoutX="59.0" layoutY="38.0" text="Left: 150">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
<Pane GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<Label alignment="CENTER_RIGHT" layoutX="53.0" layoutY="38.0" text="Left: 60 ">
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Label>
</children>
</Pane>
</children>
<BorderPane.margin>
<Insets top="30.0" />
</BorderPane.margin>
</GridPane>
</center>
</BorderPane>
<TilePane alignment="CENTER" hgap="50.0" prefHeight="215.0" prefWidth="1131.0">
<children>
<Button fx:id="foodBtn" alignment="TOP_CENTER" contentDisplay="TOP" mnemonicParsing="false" prefHeight="100.0" prefWidth="150.0" text="Food">
<graphic>
<ImageView fitHeight="75.0" fitWidth="75.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../Images/pizza.png" />
</image>
</ImageView>
</graphic>
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Button>
<Button fx:id="incomeBtn" alignment="TOP_CENTER" contentDisplay="TOP" mnemonicParsing="false" onAction="#switchScene" prefHeight="100.0" prefWidth="150.0" text="Income/expenses">
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<graphic>
<ImageView fitHeight="75.0" fitWidth="75.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../Images/income.png" />
</image>
</ImageView>
</graphic>
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Button>
<Button fx:id="budgetBtn" contentDisplay="TOP" mnemonicParsing="false" onAction="#switchScene" prefHeight="100.0" prefWidth="150.0" text="View budget">
<graphic>
<ImageView fitHeight="75.0" fitWidth="75.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../Images/budget.png" />
</image>
</ImageView>
</graphic>
<font>
<Font name="Lucida Console" size="14.0" />
</font>
</Button>
</children>
</TilePane>
</children>
</VBox>
</children>
</AnchorPane>