spawn
hoi
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user