import jexer.TWidget;
import jexer.TWindow;
import jexer.event.TCommandEvent;
+import jexer.layout.StretchLayoutManager;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
// centered on screen.
super(parent, i18n.getString("windowTitle"), 0, 0, 64, 23, flags);
+ setLayoutManager(new StretchLayoutManager(getWidth() - 2,
+ getHeight() - 2));
+
int row = 1;
// Add some widgets
}
);
+ /*
+ addButton("Exception", 35, row + 3,
+ new TAction() {
+ public void DO() {
+ try {
+ throw new RuntimeException("FUBAR'd!");
+ } catch (Exception e) {
+ new jexer.TExceptionDialog(getApplication(), e);
+ }
+ }
+ }
+ );
+ */
+
activate(first);
statusBar = newStatusBar(i18n.getString("statusBar"));