- addLabel("Input box", 1, row);
- addButton("Open &input box", 35, row,
+ addLabel(i18n.getString("inputBoxLabel1"), 1, row);
+ addButton(i18n.getString("inputBoxButton1"), 35, row,
+ new TAction() {
+ public void DO() {
+ TInputBox in = getApplication().inputBox(i18n.
+ getString("inputBoxTitle1"),
+ i18n.getString("inputBoxPrompt1"),
+ i18n.getString("inputBoxInput1"));
+ getApplication().messageBox(i18n.
+ getString("inputBoxAnswerTitle1"),
+ MessageFormat.format(i18n.
+ getString("inputBoxAnswerPrompt1"), in.getText()));
+ }
+ }
+ );
+ row += 2;
+
+ addLabel(i18n.getString("inputBoxLabel2"), 1, row);
+ addButton(i18n.getString("inputBoxButton2"), 35, row,