public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    if ("Rotation".equals(cmd)) {
      current.setEnable(false);
      current = rotator;
      current.setEnable(true);
    } else if ("Position".equals(cmd)) {
      current.setEnable(false);
      current = translator;
      current.setEnable(true);
    } else if ("Scale".equals(cmd)) {
      current.setEnable(false);
      current = zoom;
      current.setEnable(true);
    } else if ("RotPosPath".equals(cmd)) {
      current.setEnable(false);
      current = path;
      current.setEnable(true);
    } else if ("RotPosScaleTCBSplinePath".equals(cmd)) {
      current.setEnable(false);
      current = spline;
      current.setEnable(true);
    } else if ("Color".equals(cmd)) {
      color.setEnable(!color.getEnable());
    } else if ("Transparency".equals(cmd)) {
      transparency.setEnable(!transparency.getEnable());
    } else if ("SwitchValue".equals(cmd)) {
      sw.setEnable(!sw.getEnable());
    }
  }