X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoMainWindow.java;fp=src%2Fjexer%2Fdemos%2FDemoMainWindow.java;h=5433d44924006ccdfad3b59e4ee96da9f41c9dc2;hb=1dac6b8d395e2bf3c1b58915f8f4f481d9e46793;hp=1ae35f0b7dab058f42fdef8e7b6946241d00b6fe;hpb=2a92cf977ee2ae37d8302a294c6338fa51a5ca45;p=fanfix.git diff --git a/src/jexer/demos/DemoMainWindow.java b/src/jexer/demos/DemoMainWindow.java index 1ae35f0..5433d44 100644 --- a/src/jexer/demos/DemoMainWindow.java +++ b/src/jexer/demos/DemoMainWindow.java @@ -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() {