Exemplo n.º 1
0
  public void actionPerformed(ActionEvent e) {
    String cmd = e.getActionCommand();
    if (SET.equals(cmd)) {
      Prefs.setCurvatureScalingFactor(Double.parseDouble(jtCurv.getText()));
      Prefs.setSpeedScalingFactor(Double.parseDouble(jtSpeed.getText()));
      int index = jcSegScheme.getSelectedIndex();

      if (index == 0) {
        Prefs.setSegScheme(1);
      } else if (index == 1) {
        Prefs.setSegScheme(3);
      } else {
        Prefs.setSegScheme(4);
      }
      setModal(false);
      this.setVisible(false);
    }
  }