return 1;
}
private int getTimesToRunImpl() {
try {
TextFieldInput input = new TextFieldInput("How many times?", "How many times do you want to run the operation?");
input.setInitialValue("1");
input.setSelectAllWhenFocused(true);
input.setValidator(TextFieldInputValidator.INTEGER);
String value = input.showInDialog();
return Math.max(1, Integer.valueOf(value));
} catch (HeadlessException e) {
return -1;
} catch (NumberFormatException e) {
return -1;