Beispiel #1
0
 protected void ok() {
   try {
     int runs = Integer.parseInt(runsField.getText());
     int steps = Integer.parseInt(stepsField.getText());
     ((TrajPanel) context).runRandomUpdateTraj(runs, steps);
   } catch (NumberFormatException ex) {
     ((TrajPanel) context).runRandomUpdateTraj(-1, -1);
   }
 }
Beispiel #2
0
 protected void cancel() {
   ((TrajPanel) context).runRandomUpdateTraj(-1, -1);
 }