Schedule-Creator

Java GUI to create schedules for UNCG students
git clone git://git.wrycode.com/wrycode/archive/Schedule-Creator.git
Log | Files | Refs | README

commit b37ce501388db89df61b5aa21c0362ebbe5ec606
parent 3fc975f0ef81e8c2abb42bda946a89bd991e2b5c
Author: Nick Econopouly <wry@mm.st>
Date:   Tue, 18 Feb 2020 19:03:26 -0500

Merge pull request #3 from wrycode/css

Add dummy CSS to each scene
Diffstat:
Msrc/ScheduleCreator/resources/primary.fxml | 9+++------
Msrc/ScheduleCreator/resources/registration_screen.fxml | 7+++----
Msrc/ScheduleCreator/resources/select_classes.fxml | 14+++++++-------
Asrc/ScheduleCreator/resources/style.css | 6++++++
4 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/src/ScheduleCreator/resources/primary.fxml b/src/ScheduleCreator/resources/primary.fxml @@ -1,12 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> -<?import java.lang.*?> -<?import java.util.*?> -<?import javafx.scene.*?> -<?import javafx.scene.control.*?> -<?import javafx.scene.layout.*?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.layout.AnchorPane?> -<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/1" fx:controller="ScheduleCreator.PrimaryController"> +<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" stylesheets="@style.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.PrimaryController"> <children> <Button layoutX="245.0" layoutY="123.0" onAction="#changeToSelectClasses" prefHeight="37.0" prefWidth="130.0" text="Browse Classes" /> <Button layoutX="245.0" layoutY="213.0" onAction="#changeToRegistrationScreen" prefHeight="37.0" prefWidth="130.0" text="myRegistration" /> diff --git a/src/ScheduleCreator/resources/registration_screen.fxml b/src/ScheduleCreator/resources/registration_screen.fxml @@ -1,18 +1,17 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import javafx.scene.control.Button?> <?import javafx.scene.control.Label?> <?import javafx.scene.layout.AnchorPane?> -<?import javafx.scene.control.Button?> - -<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/1" fx:controller="ScheduleCreator.PrimaryController"> +<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" stylesheets="@style.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.PrimaryController"> <children> <AnchorPane layoutX="151.0" layoutY="100.0" prefHeight="200.0" prefWidth="285.0"> <children> <Label layoutX="23.0" layoutY="108.0" text="Advising Code:" /> <Label layoutX="23.0" layoutY="56.0" text="Registration Date and Time:" /> <Label layoutX="23.0" layoutY="83.0" text="My Advisor:" /> - <Button text="Back" onAction="#backToPrimary" /> + <Button onAction="#backToPrimary" text="Back" /> </children> </AnchorPane> </children> diff --git a/src/ScheduleCreator/resources/select_classes.fxml b/src/ScheduleCreator/resources/select_classes.fxml @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> -<?import java.lang.*?> -<?import java.util.*?> -<?import javafx.scene.*?> -<?import javafx.scene.control.*?> -<?import javafx.scene.layout.*?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.ChoiceBox?> +<?import javafx.scene.control.ListView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.StackPane?> -<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/1" fx:controller="ScheduleCreator.PrimaryController"> +<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" stylesheets="@style.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.PrimaryController"> <children> - <Button text="Back" onAction="#backToPrimary" /> + <Button onAction="#backToPrimary" text="Back" /> <StackPane layoutX="200.0" layoutY="131.0" prefHeight="150.0" prefWidth="200.0"> <children> <ChoiceBox prefWidth="150.0" /> diff --git a/src/ScheduleCreator/resources/style.css b/src/ScheduleCreator/resources/style.css @@ -0,0 +1,6 @@ +.button{ + -fx-text-fill: rgb(49, 89, 23); + -fx-border-color: rgb(49, 89, 23); + -fx-border-radius: 5; + -fx-padding: 3 6 6 6; +}