Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[fanfix.git] / src / jexer / demos / DemoEditorWindow.java
index c63ce0d353ca0eea49661d93ac53ee776ca10848..87798fb3f4b08d5ca6f684dc44928143f57aa35b 100644 (file)
@@ -72,7 +72,7 @@ public class DemoEditorWindow extends TWindow {
         final String text) {
 
         super(parent, title, 0, 0, 44, 22, RESIZABLE);
-        editField = new TEditorWidget(this, text, 0, 0, 42, 20);
+        editField = addEditor(text, 0, 0, 42, 20);
 
         statusBar = newStatusBar(i18n.getString("statusBar"));
         statusBar.addShortcutKeypress(kbF1, cmHelp,
@@ -93,7 +93,7 @@ public class DemoEditorWindow extends TWindow {
 "This is an example of an editable text field.  Some example text follows.\n" +
 "\n" +
 "This library implements a text-based windowing system loosely\n" +
-"reminiscient of Borland's [Turbo\n" +
+"reminiscent of Borland's [Turbo\n" +
 "Vision](http://en.wikipedia.org/wiki/Turbo_Vision) library.  For those\n" +
 "wishing to use the actual C++ Turbo Vision library, see [Sergio\n" +
 "Sigala's updated version](http://tvision.sourceforge.net/) that runs\n" +