}
private void loadPlaces(String filename)
throws FileNotFoundException, IOException {
try {
PlaceContainer places = new PlaceContainer(model);
StringTokenizer tokenizer = this.openFile(filename);
//ignore header fields
tokenizer.nextToken();
tokenizer.nextToken();
while (tokenizer.hasMoreTokens()) {
Place place = new Place();
int id = Integer.parseInt(tokenizer.nextToken());
place.setId(id);
String name = tokenizer.nextToken();
place.setName(name);
places.putPlace(id, place);
}
model.setPlaceContainer(places);
}
catch (FileNotFoundException e) {