Update copyright to 2017
[fanfix.git] / src / jexer / demos / DemoTextWindow.java
index a2ab68b0ae34bb6c6cb5d9da01da93405584d952..19b6502775c4fabd1b189d6c3f872c7696d7db13 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"),
@@ -31,6 +31,8 @@ package jexer.demos;
 import jexer.*;
 import jexer.event.*;
 import jexer.menu.*;
+import static jexer.TCommand.*;
+import static jexer.TKeypress.*;
 
 /**
  * This window demonstates the TText, THScroller, and TVScroller widgets.
@@ -54,6 +56,12 @@ public class DemoTextWindow extends TWindow {
 
         super(parent, title, 0, 0, 44, 20, RESIZABLE);
         textField = addText(text, 1, 1, 40, 16);
+
+        statusBar = newStatusBar("Reflowable text window");
+        statusBar.addShortcutKeypress(kbF1, cmHelp, "Help");
+        statusBar.addShortcutKeypress(kbF2, cmShell, "Shell");
+        statusBar.addShortcutKeypress(kbF3, cmOpen, "Open");
+        statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
     }
 
     /**