}
public void actionPerformed(ActionEvent arg0) {
super.actionPerformed(arg0);
System.out.println(arg0.getActionCommand());
if("OK".equalsIgnoreCase(arg0.getActionCommand())){
Frequency f = dialog.getChosenFrequency();
ArrayList<Season> s = dialog.getChosenSeasons();
PolicyEnum[] pe = s.toArray(new PolicyEnum[]{});
p = new MenuPolicy(pe);
p.editPolicy(MenuPolicy.ADD, f);
fireEditingStopped();