public void dispose() {
   Setup.removePropertyChangeListener(this);
   trainManager.removePropertyChangeListener(this);
   trainScheduleManager.removePropertyChangeListener(this);
   removePropertyChangeTrainSchedules();
   removePropertyChangeLocations();
   trainsScheduleModel.dispose();
   super.dispose();
 }
Example #2
0
 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();
 }