- addButton("&Close Window", (getWidth() - 14) / 2, getHeight() - 4,
+ addLabel(i18n.getString("inputBoxLabel2"), 1, row);
+ addButton(i18n.getString("inputBoxButton2"), 35, row,
+ new TAction() {
+ public void DO() {
+ TInputBox in = getApplication().inputBox(i18n.
+ getString("inputBoxTitle2"),
+ i18n.getString("inputBoxPrompt2"),
+ i18n.getString("inputBoxInput2"),
+ TInputBox.Type.OKCANCEL);
+ getApplication().messageBox(i18n.
+ getString("inputBoxAnswerTitle2"),
+ MessageFormat.format(i18n.
+ getString("inputBoxAnswerPrompt2"), in.getText(),
+ in.getResult()));
+ }
+ }
+ );
+ row += 2;
+
+ addButton(i18n.getString("closeWindow"),
+ (getWidth() - 14) / 2, getHeight() - 4,