X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoMainWindow.java;h=54234ba32a3a9ab56cea51e81171a6c3943c53df;hb=01fccda08cdbce0c3c0b76239ff685f2550d28da;hp=c5e599c53bcebade57dbe95ff13e1786d256d4b9;hpb=3096642b82e03fd73c59aade568cb6abec5d65f3;p=fanfix.git diff --git a/src/jexer/demos/DemoMainWindow.java b/src/jexer/demos/DemoMainWindow.java index c5e599c..54234ba 100644 --- a/src/jexer/demos/DemoMainWindow.java +++ b/src/jexer/demos/DemoMainWindow.java @@ -182,7 +182,8 @@ public class DemoMainWindow extends TWindow { addButton(i18n.getString("ttableButton1"), 35, row, new TAction() { public void DO() { - // TODO + new DemoTableWindow(getApplication(), + i18n.getString("tableWidgetDemo")); } } ); @@ -250,6 +251,20 @@ public class DemoMainWindow extends TWindow { } ); + /* + 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"));