X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoTextWindow.java;h=0ca34b0b5bcd7ebcd37bbb4f33857963c3d08690;hb=2ce6dab2bbd951e6d0f09f94759efda5ee4b65ac;hp=a2ab68b0ae34bb6c6cb5d9da01da93405584d952;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/demos/DemoTextWindow.java b/src/jexer/demos/DemoTextWindow.java index a2ab68b..0ca34b0 100644 --- a/src/jexer/demos/DemoTextWindow.java +++ b/src/jexer/demos/DemoTextWindow.java @@ -31,6 +31,8 @@ package jexer.demos; import jexer.*; import jexer.event.*; import jexer.menu.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TText, THScroller, and TVScroller widgets. @@ -54,6 +56,12 @@ public class DemoTextWindow extends TWindow { super(parent, title, 0, 0, 44, 20, RESIZABLE); textField = addText(text, 1, 1, 40, 16); + + statusBar = newStatusBar("Reflowable text window"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } /**