"Enter the name of the new Locomotive-Group",
"Add Locomotive-Group", JOptionPane.QUESTION_MESSAGE);
LocomotiveGroup newSection = new LocomotiveGroup(0, newGroupName);
LocomotivePersistenceIface locomotivePersistence = AdHocRailway
.getInstance().getLocomotivePersistence();
locomotivePersistence.addLocomotiveGroup(newSection);
}
}
private class RemoveLocomotiveGroupAction extends AbstractAction {
public RemoveLocomotiveGroupAction() {