public void dispose() { Setup.removePropertyChangeListener(this); trainManager.removePropertyChangeListener(this); trainScheduleManager.removePropertyChangeListener(this); removePropertyChangeTrainSchedules(); removePropertyChangeLocations(); trainsScheduleModel.dispose(); super.dispose(); }