More PMD warnings
[fanfix.git] / src / jexer / demos / DemoCheckboxWindow.java
index 9ef561c3b1f64f108c4fa28e24d23dc10e37ef89..2e45117ebbe544f4e191dc3c9afc5544c4fc7678 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
@@ -36,6 +38,10 @@ import jexer.*;
  */
 public class DemoCheckboxWindow extends TWindow {
 
+    // ------------------------------------------------------------------------
+    // Constructors -----------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Constructor.
      *
@@ -78,6 +84,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");
     }
 
 }