public void save() { Configuration config = Configuration.getInstance(); Properties props = config.props; props.setProperty("mx", maxMemory.tf.getText().trim()); props.setProperty("ms", initMemory.tf.getText().trim()); props.setProperty("ss", stackSize.tf.getText().trim()); props.setProperty("ext", extDirs.tf.getText().trim()); props.setProperty("clr", (clearLogs.cb.isSelected() ? "yes" : "no")); props.setProperty("ssl", (debugSSL.cb.isSelected() ? "yes" : "no")); props.setProperty("mon", (javaMonitor.cb.isSelected() ? "yes" : "no")); config.save(); }
public void actionPerformed(ActionEvent event) { ProjectBrowser.TheInstance.saveScreenConfiguration(); if (!Configuration.save()) Configuration.save(true); }