aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-04-16 12:41:13 +0100
committerChristopher Baines <cbaines8@gmail.com>2012-04-16 12:41:13 +0100
commitebd6b37dcf2336fd2b0e56006ee20573ac8e61c1 (patch)
tree4cf613eac3e18378a61c17fa4bc70bbe0b65c64d /src/net
parentf007d5b244857a5af1f16149cf90b8d725560e29 (diff)
downloadsouthampton-university-calendar-applet-ebd6b37dcf2336fd2b0e56006ee20573ac8e61c1.tar
southampton-university-calendar-applet-ebd6b37dcf2336fd2b0e56006ee20573ac8e61c1.tar.gz
Changed the name of lectures.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/cbaines/suca/CalendarApplet.java5
-rw-r--r--src/net/cbaines/suca/SotonCalendarParser.java2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/net/cbaines/suca/CalendarApplet.java b/src/net/cbaines/suca/CalendarApplet.java
index c94c6f4..a4c4d00 100644
--- a/src/net/cbaines/suca/CalendarApplet.java
+++ b/src/net/cbaines/suca/CalendarApplet.java
@@ -8,7 +8,6 @@ import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
-import java.io.Reader;
import java.io.StringReader;
import java.lang.reflect.InvocationTargetException;
@@ -28,12 +27,12 @@ import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
-import org.apache.commons.io.IOUtils;
-
import net.fortuna.ical4j.data.CalendarBuilder;
import net.fortuna.ical4j.data.ParserException;
import net.fortuna.ical4j.model.Calendar;
+import org.apache.commons.io.IOUtils;
+
@SuppressWarnings("serial")
public class CalendarApplet extends JApplet {
diff --git a/src/net/cbaines/suca/SotonCalendarParser.java b/src/net/cbaines/suca/SotonCalendarParser.java
index 7734dc5..a867063 100644
--- a/src/net/cbaines/suca/SotonCalendarParser.java
+++ b/src/net/cbaines/suca/SotonCalendarParser.java
@@ -659,7 +659,7 @@ public class SotonCalendarParser implements CalendarParser {
dayOfWeek = info[0];
startTime = info[1];
endTime = info[2];
- name = info[3];
+ name = info[3].split(" ")[0];
lecturer = info[4];
location = info[5];
weeks = info[6];