-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.fxml
More file actions
60 lines (58 loc) · 3.67 KB
/
MainWindow.fxml
File metadata and controls
60 lines (58 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.shape.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane id="AnchorPane" prefHeight="720.0" prefWidth="961.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="flashcards.MainWindowController">
<children>
<Label fx:id="welcomeLabel" layoutX="96.0" layoutY="30.0" text="Welcome, User!" />
<Label layoutX="96.0" layoutY="66.0" text="Select a Subject" />
<Button alignment="CENTER" layoutX="73.0" layoutY="582.0" mnemonicParsing="false" onAction="#createNewSubjectBtn" prefHeight="31.0" prefWidth="152.0" text="Add Subject" />
<Separator layoutX="309.0" layoutY="41.0" orientation="VERTICAL" prefHeight="632.0" prefWidth="6.0" />
<ListView fx:id="listView" layoutX="49.0" layoutY="101.0" prefHeight="428.0" prefWidth="200.0" />
<Button alignment="CENTER" layoutX="72.0" layoutY="544.0" mnemonicParsing="false" onAction="#addFlashCardBtn" prefHeight="31.0" prefWidth="152.0" text="Add FlashCard" />
<BorderPane fx:id="flashcardPane" layoutX="344.0" layoutY="31.0" prefHeight="658.0" prefWidth="581.0">
<left>
<Button alignment="CENTER" mnemonicParsing="false" onAction="#prevCardBtn" prefHeight="31.0" prefWidth="76.0" text="Previous" BorderPane.alignment="CENTER" />
</left>
<top>
<Label fx:id="flashcardNumLabel" alignment="TOP_CENTER" text="Flashcard #" BorderPane.alignment="CENTER">
<opaqueInsets>
<Insets />
</opaqueInsets>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
</Label>
</top>
<right>
<Button alignment="CENTER" mnemonicParsing="false" onAction="#nextCardBtn" prefHeight="31.0" prefWidth="76.0" text="Next" BorderPane.alignment="CENTER" />
</right>
<bottom>
<VBox alignment="BOTTOM_CENTER" prefHeight="137.0" prefWidth="585.0" spacing="5.0" BorderPane.alignment="CENTER">
<children>
<Label fx:id="totAttemptLabel" text="Total Attempts: 0" />
<Label fx:id="corAttemptLabel" alignment="CENTER" text="Correct Attempts: 0" />
<Label fx:id="incAttemptLabel" alignment="CENTER" text="Incorrect Attempts: 0" />
<Button alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#removeFlashcardBtn" prefHeight="31.0" prefWidth="152.0" text="Remove FlashCard" />
</children>
</VBox>
</bottom>
<center>
<VBox fx:id="flashcardDisplayBox" alignment="TOP_CENTER" prefHeight="200.0" prefWidth="100.0" spacing="15.0" BorderPane.alignment="CENTER">
<children>
<Label text="Label" />
<TextField alignment="CENTER" prefHeight="31.0" prefWidth="357.0" />
<Button mnemonicParsing="false" text="Check Answer" />
</children>
<padding>
<Insets left="40.0" right="40.0" top="10.0" />
</padding></VBox>
</center></BorderPane>
<Button alignment="CENTER" contentDisplay="CENTER" layoutX="73.0" layoutY="620.0" mnemonicParsing="false" onAction="#removeSubjectBtn" prefHeight="31.0" prefWidth="152.0" text="Remove Subject" />
<Button alignment="CENTER" contentDisplay="CENTER" layoutX="72.0" layoutY="658.0" mnemonicParsing="false" onAction="#resetFlashcardsBtn" prefHeight="31.0" prefWidth="152.0" text="Reset FlashCards" />
</children>
</AnchorPane>