Update copyright to 2017
[nikiroo-utils.git] / src / jexer / demos / DemoCheckboxWindow.java
index 9ef561c3b1f64f108c4fa28e24d23dc10e37ef89..be0c81fed46f820859fea0f02f870f7de95db80a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -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");
     }
 
 }