Fixed stuff

This commit is contained in:
2015-04-08 20:57:06 +02:00
parent d0baf5673f
commit c3973cc4e4
20 changed files with 519 additions and 189 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ public class AddStagePanel extends JFrame{
String description = descriptionTF.getText();
boolean alreadyExists = false;
for (Stage stage : agenda.getStages())
for (AgendaStage stage : agenda.getStages())
{
if (stage.getName().equals(name))
{
@@ -70,7 +70,7 @@ public class AddStagePanel extends JFrame{
}
else if ( alreadyExists == false )
{
Stage s = new Stage(name,description);
AgendaStage s = new AgendaStage(name,description);
agenda.addStage(s);
JOptionPane.showMessageDialog(null, "Stage added!");
setVisible(false);