public void doSave() { leavePage(null); theModel.write(); updateLights(); saveChanges.setEnabled(false); }