X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoEditorWindow.java;h=005383135521ac619ee2c6173737b87789b97c6b;hb=d6ee0801333ff93dffd851f4c1a44519c96c371d;hp=5639ed7c12f00be2c2097a66adb2906ee505f4f1;hpb=12b55d76e3473407bf37fca3667860240cb8f3be;p=fanfix.git diff --git a/src/jexer/demos/DemoEditorWindow.java b/src/jexer/demos/DemoEditorWindow.java index 5639ed7..0053831 100644 --- a/src/jexer/demos/DemoEditorWindow.java +++ b/src/jexer/demos/DemoEditorWindow.java @@ -34,7 +34,7 @@ import static jexer.TCommand.*; import static jexer.TKeypress.*; /** - * This window demonstates the TText, THScroller, and TVScroller widgets. + * This window demonstates the TEditor widget. */ public class DemoEditorWindow extends TWindow { @@ -56,10 +56,9 @@ public class DemoEditorWindow extends TWindow { super(parent, title, 0, 0, 44, 22, RESIZABLE); editField = addEditor(text, 0, 0, 42, 20); - statusBar = newStatusBar("Editable text window"); + statusBar = newStatusBar("Editable text demo window"); statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); - statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } @@ -80,7 +79,23 @@ public class DemoEditorWindow extends TWindow { "on many more platforms.\n" + "\n" + "This library is licensed MIT. See the file LICENSE for the full license\n" + -"for the details.\n"); +"for the details.\n" + +"\n" + +"package jexer.demos;\n" + +"\n" + +"import jexer.*;\n" + +"import jexer.event.*;\n" + +"import static jexer.TCommand.*;\n" + +"import static jexer.TKeypress.*;\n" + +"\n" + +"/**\n" + +" * This window demonstates the TText, THScroller, and TVScroller widgets.\n" + +" */\n" + +"public class DemoEditorWindow extends TWindow {\n" + +"\n" + +"1 2 3 123\n" + +"\n" + ); }