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();
dialog.setVisible(false);
}
else if ("Reset".equalsIgnoreCase(arg0.getActionCommand())){