public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    TexCoordGeneration tcg = new TexCoordGeneration();
    if ("OBJECT_LINEAR".equals(cmd)) {
      tcg.setGenMode(TexCoordGeneration.OBJECT_LINEAR);
    } else if ("EYE_LINEAR".equals(cmd)) {
      tcg.setGenMode(TexCoordGeneration.EYE_LINEAR);
    } else if ("SPHERE_MAP".equals(cmd)) {
      tcg.setGenMode(TexCoordGeneration.SPHERE_MAP);
    } else if ("NORMAL_MAP".equals(cmd)) {
      tcg.setGenMode(TexCoordGeneration.NORMAL_MAP);
    } else if ("REFLECTION_MAP".equals(cmd)) {
      tcg.setGenMode(TexCoordGeneration.REFLECTION_MAP);
    }
    tcg.setFormat(TexCoordGeneration.TEXTURE_COORDINATE_3);
    tcg.setPlaneR(new Vector4f(2, 0, 0, 0));
    tcg.setPlaneS(new Vector4f(0, 2, 0, 0));
    tcg.setPlaneT(new Vector4f(0, 0, 2, 0));
    ap.setTexCoordGeneration(tcg);
  }