X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoMsgBoxWindow.java;h=77bc33199d16208f351ebb16b08ac7ef63a9d206;hb=2ce6dab2bbd951e6d0f09f94759efda5ee4b65ac;hp=a56da43760e3b38176f90e4dc33d034530b70d4a;hpb=55d2b2c2b29ce51f4f910448a115073371deeae8;p=fanfix.git diff --git a/src/jexer/demos/DemoMsgBoxWindow.java b/src/jexer/demos/DemoMsgBoxWindow.java index a56da43..77bc331 100644 --- a/src/jexer/demos/DemoMsgBoxWindow.java +++ b/src/jexer/demos/DemoMsgBoxWindow.java @@ -29,6 +29,8 @@ package jexer.demos; import jexer.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TMessageBox and TInputBox widgets. @@ -53,7 +55,7 @@ public class DemoMsgBoxWindow extends TWindow { DemoMsgBoxWindow(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, "Message Boxes", 0, 0, 60, 15, flags); + super(parent, "Message Boxes", 0, 0, 60, 16, flags); int row = 1; @@ -154,6 +156,11 @@ public class DemoMsgBoxWindow extends TWindow { } } ); + + statusBar = newStatusBar("Message boxes"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } } -