X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoCheckboxWindow.java;h=22d0cecba038515e649bab96faa060716a907c80;hb=2ce6dab2bbd951e6d0f09f94759efda5ee4b65ac;hp=9ef561c3b1f64f108c4fa28e24d23dc10e37ef89;hpb=55d2b2c2b29ce51f4f910448a115073371deeae8;p=fanfix.git diff --git a/src/jexer/demos/DemoCheckboxWindow.java b/src/jexer/demos/DemoCheckboxWindow.java index 9ef561c..22d0cec 100644 --- a/src/jexer/demos/DemoCheckboxWindow.java +++ b/src/jexer/demos/DemoCheckboxWindow.java @@ -29,6 +29,8 @@ package jexer.demos; import jexer.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TRadioGroup, TRadioButton, and TCheckbox @@ -78,6 +80,12 @@ public class DemoCheckboxWindow extends TWindow { } } ); + + statusBar = newStatusBar("Radiobuttons and checkboxes"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } }