public void dispose() { Setup.removePropertyChangeListener(this); trainManager.removePropertyChangeListener(this); trainScheduleManager.removePropertyChangeListener(this); removePropertyChangeTrainSchedules(); removePropertyChangeLocations(); trainsScheduleModel.dispose(); super.dispose(); }
public void dispose() { /* * all JMRI window position and size are now saved in user preference file * trainManager.setTrainsFrameTableColumnWidths(getCurrentTableColumnWidths()); // save column widths * trainManager.setTrainsFrame(null); */ trainsModel.dispose(); trainManager.runShutDownScripts(); trainManager.removePropertyChangeListener(this); Setup.removePropertyChangeListener(this); removePropertyChangeLocations(); super.dispose(); }