diff --git a/README.md b/README.md index dbc2da3..1af3970 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ University of Ottawa students have no easy way to generate a conflict-free, opti Now that that class is done, we are continuing development on the project, as it is a useful utility when working with uOttawa's Rabaska course-registration system. -## [Download](https://github.com/morinted/schedule-generator/releases/download/v1.0.2/uOttawa-Schedule-Generator-v1.0.2.jar) +## [Download](https://github.com/morinted/schedule-generator/releases/download/v1.1.0/uOttawa-Schedule-Generator-v1.1.0.jar) -If you just want to get started generating schedules right away, then [download the program for Windows, Mac, and Linux](https://github.com/morinted/schedule-generator/releases/download/v1.0.2/uOttawa-Schedule-Generator-v1.0.2.jar). Note that you need Java to run the .jar file. Check out the user's guide below if you get confused while using the program. +If you just want to get started generating schedules right away, then [download the program for Windows, Mac, and Linux](https://github.com/morinted/schedule-generator/releases/download/v1.1.0/uOttawa-Schedule-Generator-v1.1.0.jar). Note that you need Java to run the .jar file. Check out the user's guide below if you get confused while using the program. ## Features diff --git a/schedule-generator/ca/uottawa/ui/ClientGUI.java b/schedule-generator/ca/uottawa/ui/ClientGUI.java index 1a72c74..be0cbcc 100644 --- a/schedule-generator/ca/uottawa/ui/ClientGUI.java +++ b/schedule-generator/ca/uottawa/ui/ClientGUI.java @@ -587,7 +587,7 @@ public static void main(String[] args) { { port = DEFAULT_PORT; //Else default to the default port. } - new ClientGUI("uOttawa Schedule Generator - v1.0.2", host, port); + new ClientGUI("uOttawa Schedule Generator - v1.1.0", host, port); } /** @@ -914,7 +914,6 @@ public void run() { clear(); btnPrint.setEnabled(false); btnExport.setEnabled(false); - System.out.println("Clearing"); } else { if (schedules.size() == 1000) { display("There were more than 1000 results. Narrow your search to see other options."); @@ -1071,6 +1070,18 @@ public void editCourse(Course edit, String semester) { editSections.add(s); } } + + List
sectionsToRemove = new ArrayList
(); + for (Section s: edit.getSections()) { + if (!s.getSemester().equals(semester)) { + sectionsToRemove.add(s); + } + } + while (!sectionsToRemove.isEmpty()) { + Section toRemove = sectionsToRemove.get(0); + sectionsToRemove.remove(0); + toRemove.delete(); + } courseEditing = edit; //Now edit sections contains the current semester's lists. @@ -1189,8 +1200,8 @@ public void actionPerformed(ActionEvent e) { Dimension preferred = editFrame.getPreferredSize(); if (preferred.height > EDIT_HEIGHT) { - preferred.height = EDIT_HEIGHT; - preferred.width+=20; //This is to handle the extra width of the scrollbar. + preferred.height = EDIT_HEIGHT+20; + preferred.width+=40; //This is to handle the extra width of the scrollbar. }