stubs for TTableWidget
[fanfix.git] / src / jexer / demos / DemoMainWindow.java
index 1ae35f0b7dab058f42fdef8e7b6946241d00b6fe..5433d44924006ccdfad3b59e4ee96da9f41c9dc2 100644 (file)
@@ -42,6 +42,7 @@ import jexer.TEditColorThemeWindow;
 import jexer.TEditorWindow;
 import jexer.TLabel;
 import jexer.TProgressBar;
+import jexer.TTableWindow;
 import jexer.TTimer;
 import jexer.TWidget;
 import jexer.TWindow;
@@ -119,7 +120,7 @@ public class DemoMainWindow extends TWindow {
     private DemoMainWindow(final TApplication parent, final int flags) {
         // Construct a demo window.  X and Y don't matter because it will be
         // centered on screen.
-        super(parent, i18n.getString("windowTitle"), 0, 0, 64, 23, flags);
+        super(parent, i18n.getString("windowTitle"), 0, 0, 64, 25, flags);
 
         int row = 1;
 
@@ -191,6 +192,24 @@ public class DemoMainWindow extends TWindow {
         );
         row += 2;
 
+        addLabel(i18n.getString("ttableLabel"), 1, row);
+        addButton(i18n.getString("ttableButton1"), 35, row,
+            new TAction() {
+                public void DO() {
+                    // TODO
+                }
+            }
+        );
+        addButton(i18n.getString("ttableButton2"), 48, row,
+            new TAction() {
+                public void DO() {
+                    new TTableWindow(getApplication(),
+                        i18n.getString("tableDemo"));
+                }
+            }
+        );
+        row += 2;
+
         addLabel(i18n.getString("treeViewLabel"), 1, row);
         addButton(i18n.getString("treeViewButton"), 35, row,
             new TAction() {