if(arg.equals(res.getString("button.add"))) {
if(arg.equals(YAMM.getString("button.add"))) {
    public void actionPerformed(ActionEvent e) {      String arg = ((JButton)e.getSource()).getText();      if(arg.equals(res.getString("button.add"))) {      }      else if(arg.equals(res.getString("edit"))) {      }      else if(arg.equals(res.getString("button.delete"))) {      }    }