TStatusBar
[fanfix.git] / src / jexer / demos / DemoCheckboxWindow.java
index 9ef561c3b1f64f108c4fa28e24d23dc10e37ef89..22d0cecba038515e649bab96faa060716a907c80 100644 (file)
@@ -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");
     }
 
 }