Fixed loading and saving not showing agenda. Added new Agenda button

This commit is contained in:
2015-02-26 10:27:24 +01:00
parent 056a8b36d1
commit e0b9c991c8
4 changed files with 33 additions and 5 deletions
+2
View File
@@ -128,6 +128,7 @@ public class Agenda implements Serializable {
{
clearAgenda();
fillAgenda(file);
JOptionPane.showMessageDialog(null, "Loaded succesfully");
}
}
}
@@ -201,6 +202,7 @@ public class Agenda implements Serializable {
oos.writeObject(event);
}
oos.close();
JOptionPane.showMessageDialog(null, "Saved succesfully");
} catch (IOException e) {
e.printStackTrace();
}