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 681be013b25a445ec2f3e689c4cd1a7a5ea5186a
parent d032d5f82edef235903bc53ae27bb1027e9025b6
Author: jamisonv93 <47033011+jamisonv93@users.noreply.github.com>
Date:   Mon, 30 Mar 2020 09:33:21 -0400

more info in CRN pop up (#52)


Diffstat:
MScheduleCreator/controllers/CoursesController.java | 2+-
MScheduleCreator/resources/views/select_courses.fxml | 8++++++--
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ScheduleCreator/controllers/CoursesController.java b/ScheduleCreator/controllers/CoursesController.java @@ -468,7 +468,7 @@ public class CoursesController implements Initializable { this.CRNContainer.getChildren().clear(); StringBuilder content = new StringBuilder(); for (Section section : this.currentSemester.getSchedules().get(this.currentScheduleIndex).getAddedSections()) { - content.append(section.getCRN() + "\n"); + content.append(section.getID() + " - " + section.getCRN() + "\n"); } TextArea textArea = new TextArea(content.toString()); textArea.setEditable(false); diff --git a/ScheduleCreator/resources/views/select_courses.fxml b/ScheduleCreator/resources/views/select_courses.fxml @@ -1,5 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import java.lang.*?> +<?import javafx.geometry.*?> +<?import javafx.scene.control.*?> +<?import javafx.scene.layout.*?> <?import javafx.geometry.Insets?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.ComboBox?> @@ -15,7 +19,7 @@ <?import javafx.scene.layout.RowConstraints?> <?import javafx.scene.layout.VBox?> -<GridPane xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.controllers.CoursesController"> +<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.controllers.CoursesController"> <columnConstraints> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="2.0" prefWidth="20.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" /> @@ -87,7 +91,7 @@ <Label text="7:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="12" GridPane.valignment="TOP" /> <Label text="8:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="13" GridPane.valignment="TOP" /> <Label text="9:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="14" GridPane.valignment="TOP" /> - <VBox fx:id="CRNPane" minHeight="-Infinity" minWidth="-Infinity" prefHeight="96.0" prefWidth="287.0" style="-fx-background-color: white;" visible="false" GridPane.columnIndex="2" GridPane.columnSpan="3" GridPane.hgrow="NEVER" GridPane.rowIndex="6" GridPane.rowSpan="4" GridPane.vgrow="NEVER"> + <VBox fx:id="CRNPane" minHeight="-Infinity" minWidth="-Infinity" prefHeight="96.0" prefWidth="287.0" style="-fx-background-color: white; -fx-border-color: black; -fx-border-width: 2; -fx-border-radius: 2;" visible="false" GridPane.columnIndex="2" GridPane.columnSpan="3" GridPane.hgrow="NEVER" GridPane.rowIndex="6" GridPane.rowSpan="4" GridPane.vgrow="NEVER"> <children> <ToolBar prefHeight="35.0" prefWidth="314.0"> <items>