PlayerProfile.fxml 32.3 KB
Newer Older
Xuhao Lin's avatar
Xuhao Lin committed
1
2
<?xml version="1.0" encoding="UTF-8"?>

Peining's avatar
Peining committed
3
<?import javafx.geometry.*?>
Peining's avatar
Peining committed
4
5
6
<?import javafx.scene.chart.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.shape.*?>
Xuhao Lin's avatar
Xuhao Lin committed
7
8
9
10
11
12
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

13
14

<!--
Peining's avatar
Peining committed
15
<GridPane alignment="CENTER" prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: #061f30;" stylesheets="@../../styles/ihmmain.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.utclo23.ihmmain.controller.PlayerProfileController">
Audrick Libraire's avatar
Audrick Libraire committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    <children>
        <GridPane alignment="CENTER" prefHeight="0.0" prefWidth="800.0" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
            <children>
                <Label fx:id="pageTitleLabel" alignment="CENTER" prefHeight="27.0" prefWidth="268.0" text="User Profile" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                <Line fx:id="lineDesign" endX="100.0" startX="-100.0" stroke="#cde862" styleClass="lineDesign" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER" />
                <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="CENTER">
                    <children>
                        <VBox prefHeight="261.0" prefWidth="274.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" prefHeight="203.0" prefWidth="250.0">
                                    <children>
                                        <ImageView fx:id="image" fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0">
                                    <children>
                                        <Button fx:id="avatar" mnemonicParsing="false" onAction="#editAvatar" text="Modify">
                                            <opaqueInsets>
                                                <Insets />
                                            </opaqueInsets>
                                            <HBox.margin>
                                                <Insets left="20.0" />
                                            </HBox.margin></Button>
                                    </children>
                                </HBox>
                            </children>
                        </VBox>
                        <VBox prefHeight="261.0" prefWidth="306.0">
                            <children>
                                <GridPane alignment="CENTER" prefHeight="257.0" prefWidth="282.0">
                                    <children>
                                        <Label alignment="CENTER" text="Nickname" />
48
                                        <Label fx:id="userID" text="" GridPane.columnIndex="1" />
Audrick Libraire's avatar
Audrick Libraire committed
49
                                        <Label text="First Name" GridPane.rowIndex="1" />
50
                                        <Label fx:id="firstNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="1" />
Audrick Libraire's avatar
Audrick Libraire committed
51
                                        <Label text="Last Name" GridPane.rowIndex="2" />
52
                                        <Label fx:id="lastNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="2" />
Audrick Libraire's avatar
Audrick Libraire committed
53
                                        <Label text="Birthday" GridPane.rowIndex="3" />
54
                                        <Label fx:id="birthdayText" text="" GridPane.columnIndex="1" GridPane.rowIndex="3" />
Audrick Libraire's avatar
Audrick Libraire committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
                                        <Label text="Password" GridPane.rowIndex="4" />
                                        <Button fx:id="playerName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" />
                                        <Button fx:id="firstName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                        <Button fx:id="lastName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                                        <Button fx:id="birthday" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                                        <Button fx:id="password" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="4" />
                                        <Label />
                                        <Label text="Nickname" />
                                        <Label fx:id="birthday1" text="********" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                                    </children>
                                    <columnConstraints>
                                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                    </rowConstraints>
                                </GridPane>
                            </children>
                        </VBox>
                        <VBox prefHeight="261.0" prefWidth="291.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" prefHeight="51.0" prefWidth="268.0">
                                    <children>
                                        <Label alignment="CENTER" contentDisplay="CENTER" text="Description">
                                        <HBox.margin>
                                            <Insets left="80.0" />
                                        </HBox.margin></Label>
                                    </children>
                                    <VBox.margin>
                                        <Insets />
                                    </VBox.margin>
                                </HBox>
                                <HBox alignment="CENTER_RIGHT" prefHeight="165.0" prefWidth="268.0">
                                    <children>
                                        <TextField fx:id="description" editable="false" onKeyPressed="#closeEdit" prefHeight="144.0" prefWidth="219.0" text="Hello!" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" prefHeight="29.0" prefWidth="268.0">
                                    <children>
                                        <Button fx:id="Description" mnemonicParsing="false" onAction="#editDescription" text="edit" />
                                    </children>
                                    <padding>
                                        <Insets left="70.0" />
                                    </padding>
                                </HBox>
                            </children>
                        </VBox>
                    </children>
                </HBox>
            </children>
            <columnConstraints>
Peining's avatar
Peining committed
112
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
Audrick Libraire's avatar
Audrick Libraire committed
113
114
115
116
117
118
119
120
121
            </columnConstraints>
            <rowConstraints>
                <RowConstraints maxHeight="143.0" minHeight="10.0" prefHeight="29.0" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="143.0" minHeight="0.0" prefHeight="0.0" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="280.0" minHeight="10.0" prefHeight="273.0" vgrow="SOMETIMES" />
            </rowConstraints>
        </GridPane>
        <GridPane alignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER">
            <columnConstraints>
Peining's avatar
Peining committed
122
123
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
Audrick Libraire's avatar
Audrick Libraire committed
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
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
            </columnConstraints>
            <rowConstraints>
                <RowConstraints maxHeight="139.71987915039062" minHeight="10.0" prefHeight="38.387481689453125" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="261.6125183105469" minHeight="10.0" prefHeight="204.0" valignment="CENTER" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="261.6125183105469" minHeight="10.0" prefHeight="67.0" vgrow="SOMETIMES" />
            </rowConstraints>
            <children>
                <Label text="Statistics" GridPane.halignment="LEFT">
                    <GridPane.margin>
                        <Insets left="90.0" />
                    </GridPane.margin>
                </Label>
                <GridPane prefHeight="125.0" prefWidth="368.0" GridPane.halignment="RIGHT" GridPane.rowIndex="1" GridPane.valignment="CENTER">
                    <children>
                        <Label text="Total" GridPane.rowIndex="1">
                            <GridPane.margin>
                                <Insets left="10.0" />
                            </GridPane.margin>
                        </Label>
                        <Label text="Classical Mode" GridPane.rowIndex="2">
                            <GridPane.margin>
                                <Insets left="10.0" />
                            </GridPane.margin>
                        </Label>
                        <Label text="Belge Mode" GridPane.rowIndex="3">
                            <GridPane.margin>
                                <Insets left="10.0" />
                            </GridPane.margin>
                        </Label>
                        <Label text="Played" GridPane.columnIndex="1" />
                        <Label text="Win" GridPane.columnIndex="2" />
                        <Label text="Loss" GridPane.columnIndex="3" />
                        <Label text="Abandoned" GridPane.columnIndex="4" />
                        <Label prefHeight="17.0" prefWidth="0.0" text="0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                        <Label text="0" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                        <Label text="0" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                        <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                        <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                        <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                        <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
                        <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="2" />
                        <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="3" />
                        <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="1" />
                        <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="2" />
                        <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="3" />
                    </children>
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="121.50106811523438" minWidth="10.0" prefWidth="106.39501953125" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="85.50106811523438" minWidth="10.0" prefWidth="62.55302429199219" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="103.73809814453125" minWidth="10.0" prefWidth="47.079010009765625" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="99.23699951171875" minWidth="10.0" prefWidth="45.920989990234375" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="108.71102905273438" minWidth="10.0" prefWidth="106.55300903320312" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="63.0" minHeight="10.0" prefHeight="61.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="68.0" minHeight="10.0" prefHeight="53.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="74.0" minHeight="10.0" prefHeight="57.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <GridPane.margin>
                        <Insets left="80.0" />
                    </GridPane.margin>
                </GridPane>
                <GridPane GridPane.rowIndex="2">
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <Button fx:id="backButton" mnemonicParsing="false" onAction="#back" text="Return" GridPane.halignment="LEFT" GridPane.valignment="TOP">
                            <GridPane.margin>
                                <Insets left="80.0" />
                            </GridPane.margin>
                        </Button>
                        <Button fx:id="playerList" mnemonicParsing="false" onAction="#toPlayerList" text="Other Player" GridPane.columnIndex="1" GridPane.valignment="TOP" />
                    </children>
                </GridPane>
                <GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <PieChart fx:id="allMode" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="All Mode" titleSide="BOTTOM" />
                        <PieChart fx:id="classical" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Classical" titleSide="BOTTOM" GridPane.columnIndex="1" />
                        <PieChart fx:id="belge" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Belge" titleSide="BOTTOM" GridPane.columnIndex="2" />
                    </children>
                </GridPane>
            </children>
        </GridPane>
    </children>
    <columnConstraints>
        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.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>
Peining's avatar
Peining committed
229
</GridPane>
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
-->


<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="600" minWidth="800" prefHeight="768" prefWidth="1368" id="generalGrid"  stylesheets="@../../styles/ihmmain.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.utclo23.ihmmain.controller.PlayerProfileController">   
    <columnConstraints>
        <ColumnConstraints hgrow="SOMETIMES" />
    </columnConstraints>
    <rowConstraints>
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="70.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
    </rowConstraints>  
    <children>
        <!-- Title -->
        <Label fx:id="pageTitleLabel" textAlignment="CENTER" text="User Profile" GridPane.columnIndex="0" GridPane.halignment="CENTER" GridPane.rowIndex="0" GridPane.valignment="CENTER" />
        <Line fx:id="lineDesign" endX="100.0" startX="-100.0" styleClass="lineDesign" GridPane.halignment="CENTER" GridPane.valignment="BOTTOM" />
        
        <!-- Body -->
        <GridPane GridPane.rowIndex = "2">
            <columnConstraints>
                <ColumnConstraints percentWidth="100.0" hgrow="SOMETIMES"/>
            </columnConstraints>
            <rowConstraints>
                <RowConstraints percentHeight="50.0" vgrow="SOMETIMES" />
                <RowConstraints percentHeight="50.0" vgrow="SOMETIMES" />
            </rowConstraints>
            <children>
                <!-- First row ( picture, edit, description ) -->
                <GridPane GridPane.rowIndex = "0">
                    <columnConstraints>
                        <ColumnConstraints percentWidth="33.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="34.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="33.0" hgrow="SOMETIMES"/>
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <!-- Picture -->
                        <GridPane GridPane.columnIndex = "0">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="100.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="90.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <ImageView GridPane.rowIndex="0" GridPane.halignment="center" GridPane.valignment="center" fx:id="image" fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
                                <GridPane GridPane.rowIndex="1">
                                    <columnConstraints>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                                    </rowConstraints>
                                    <children>
                                        <Button GridPane.columnIndex="1" maxWidth="Infinity" fx:id="avatar" mnemonicParsing="false" onAction="#editAvatar" text="Modify"/>
                                    </children>
                                </GridPane>
                            </children>
                        </GridPane>

                        <!-- Edit -->
                        <GridPane GridPane.columnIndex = "1">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />                                
                            </rowConstraints>
                            <children>
                                <Label alignment="CENTER" text="Nickname" GridPane.columnIndex="0" GridPane.rowIndex="0" />
                                <Label fx:id="userID" text="" GridPane.columnIndex="1" GridPane.rowIndex="0" />
                                <Label text="First Name" GridPane.columnIndex="0" GridPane.rowIndex="1" />
                                <Label fx:id="firstNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                <Label text="Last Name" GridPane.columnIndex="0" GridPane.rowIndex="2" />
                                <Label fx:id="lastNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                                <Label text="Birthday" GridPane.columnIndex="0" GridPane.rowIndex="3" />
                                <Label fx:id="birthdayText" text="" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                                <Label text="Password" GridPane.columnIndex="0" GridPane.rowIndex="4" />
                                <Label fx:id="birthday1" text="******" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                                <Button fx:id="playerName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" />
                                <Button fx:id="firstName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                <Button fx:id="lastName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                                <Button fx:id="birthday" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                                <Button fx:id="password" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="4" />
                            </children>
                        </GridPane>
                        
                        <!-- Description   -->                           
                        <GridPane GridPane.columnIndex = "2">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="90.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="10.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="90.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <TextField GridPane.rowIndex="0" fx:id="description" editable="false" onKeyPressed="#closeEdit" prefHeight="144.0" prefWidth="219.0" text="Hello!" />
                                    <GridPane GridPane.rowIndex="1">
                                    <columnConstraints>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                                    </rowConstraints>
                                    <children>
                                        <Button GridPane.columnIndex="1" maxWidth="Infinity" fx:id="Description" mnemonicParsing="false" onAction="#editDescription" text="edit" />
                                    </children>
                                </GridPane>
                            </children>
                        </GridPane>
                    </children>
                </GridPane>   
                                  
                <!-- Second row ( stats and chart ) -->
                <GridPane GridPane.rowIndex = "1">
                    <columnConstraints>
                        <ColumnConstraints percentWidth="5.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="10.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="5.0" hgrow="SOMETIMES"/>
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints percentHeight="7.0" vgrow="SOMETIMES" />
                        <RowConstraints percentHeight="90.0" vgrow="SOMETIMES" />
                        <RowConstraints percentHeight="3.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <!-- Stats -->
                        <GridPane fx:id="statGrid" GridPane.columnIndex = "1" GridPane.rowIndex = "1">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <Label text=" Total" GridPane.rowIndex="1"/>
                                <Label text=" Classical Mode" GridPane.rowIndex="2"/>
                                <Label text=" Belge Mode" GridPane.rowIndex="3"/>
                                <Label text="Played" GridPane.columnIndex="1" GridPane.halignment="center"/>
                                <Label text="Win" GridPane.columnIndex="2" GridPane.halignment="center"/>
                                <Label text="Loss" GridPane.columnIndex="3" GridPane.halignment="center"/>
                                <Label text="Abandoned" GridPane.columnIndex="4" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="1" GridPane.rowIndex="1" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="1" GridPane.rowIndex="2" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="1" GridPane.rowIndex="3" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="1" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="2" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="2" GridPane.rowIndex="3" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="1" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="2" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="3" GridPane.rowIndex="3" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="1" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="2" GridPane.halignment="center"/>
                                <Label text="0" GridPane.columnIndex="4" GridPane.rowIndex="3" GridPane.halignment="center"/>
                            </children>
                        </GridPane>
                    
                        <!-- Charts -->        
                        <GridPane GridPane.columnIndex="3" GridPane.rowIndex="1">
                            <columnConstraints>
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="33.0" prefWidth="100.0" />
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="34.0" prefWidth="100.0" />
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="33.0" prefWidth="100.0" />
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <PieChart fx:id="allMode" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="All Mode" titleSide="BOTTOM" />
                                <PieChart fx:id="classical" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Classical" titleSide="BOTTOM" GridPane.columnIndex="1" />
                                <PieChart fx:id="belge" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Belge" titleSide="BOTTOM" GridPane.columnIndex="2" />
                            </children>
                        </GridPane>        
                                
                    </children>
                </GridPane>            
                                
                                
                            
                            
                            
                            
                            
            </children>
        </GridPane>
    
                    
                
  
        
        
        <!-- Button -->    
        <GridPane GridPane.rowIndex = "3">
                <columnConstraints>
                    <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="15.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="10.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="15.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                </columnConstraints>
                <rowConstraints>
                    <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                </rowConstraints>
                <children>
                    <Button GridPane.columnIndex="3" maxWidth="Infinity" fx:id="backButton" mnemonicParsing="false" onAction="#back" text="Return" GridPane.halignment="LEFT" GridPane.valignment="CENTER"/>
                    <Button GridPane.columnIndex="1" maxWidth="Infinity" fx:id="playerList" mnemonicParsing="false" onAction="#toPlayerList" text="Other Player" GridPane.valignment="CENTER" />   
                </children>
            </GridPane>    
        
    </children>
</GridPane>