public boolean action(Event event, Object arg) {
    if (event.target == okButton) {
      ok = true;
      if (cb != null) cb.getOptions();
      endDialog();
    } else if (event.target == cancelButton) {
      ok = false;
      endDialog();
    } else if (event.target == autoSelect) {
      zrle.setEnabled(!autoSelect.getState());
      hextile.setEnabled(!autoSelect.getState());
      raw.setEnabled(!autoSelect.getState());
    } else if (event.target == encodingSel) {
	  ((CardLayout)cardPanel.getLayout()).show(cardPanel, "Encoding and Colour Level:");
	  makeBold(encodingSel);
    } else if (event.target == inputSel) {
      ((CardLayout)cardPanel.getLayout()).show(cardPanel, "Inputs:");
      makeBold(inputSel);
	} else if (event.target == miscSel) {
      ((CardLayout)cardPanel.getLayout()).show(cardPanel, "Misc:");
      makeBold(miscSel);
    }
    return true;
  }