else if(arg.equals(res.getString("button.ok"))) { try { InputStream in = new FileInputStream(System.getProperty("user.home") + "/.yamm/.config"); props = new Properties(); props.load(in); in.close(); } catch (IOException propsioe) { System.err.println(propsioe); }  props.setProperty("username",  name.getText()); props.setProperty("email",email.getText()); props.setProperty("signatur", signatur.getText());  props.setProperty("msgmaxsize", JTField.getText());  try{ OutputStream out = new FileOutputStream(System.getProperty("user.home") + "/.yamm/.config"); props.store(out, "Yamm configuration file"); out.close(); } catch(IOException propsioe) { System.err.println(propsioe); }
else if(arg.equals(YAMM.getString("button.ok"))) { YAMM.setProperty("username",  name.getText()); YAMM.setProperty("email",email.getText()); YAMM.setProperty("signatur", signatur.getText()); YAMM.setProperty("msgmaxsize", JTField.getText());
    public void actionPerformed(ActionEvent e) {      String arg = ((JButton)e.getSource()).getText();      if(arg.equals(res.getString("button.add"))) {        EDIT(true);      }      else if(arg.equals(res.getString("edit"))) {        EDIT(false);      }      else if(arg.equals(res.getString("button.delete"))) {        DELETE();      }      else if(arg.equals(res.getString("button.browse"))) {        browse();      }      else if(arg.equals(res.getString("button.ok"))) {        try {          InputStream in = new FileInputStream(System.getProperty("user.home") + "/.yamm/.config");          props = new Properties();          props.load(in);          in.close();        } catch (IOException propsioe) { System.err.println(propsioe); }        props.setProperty("username",  name.getText());        props.setProperty("email",email.getText());        props.setProperty("signatur", signatur.getText());//        props.setProperty("theme", theme.getSelectedItem().toString());        props.setProperty("msgmaxsize", JTField.getText());        try{          OutputStream out = new FileOutputStream(System.getProperty("user.home") + "/.yamm/.config");          props.store(out, "Yamm configuration file");          out.close();        } catch(IOException propsioe) { System.err.println(propsioe); }        dispose();      }    }