String command = e.getActionCommand();
String command = e.getActionCommand().toLowerCase();
  public void actionPerformed(ActionEvent e)  {    String command = e.getActionCommand();    if("preadd".equals(command))    {      preadd();    }    else if("preremove".equals(command))    {      preremove();    }    else if("preedit".equals(command))    {      premodify();    }    else if("postadd".equals(command))    {      postadd();    }    else if("postremove".equals(command))    {      postremove();    }    else if("postedit".equals(command))    {      postmodify();    }    else if("conditionadd".equals(command))    {      add();    }    else if("conditionremove".equals(command))    {      remove();    }    else if("conditionedit".equals(command))    {      modify();    }  }