Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[nikiroo-utils.git] / src / jexer / demos / DemoEditorWindow.java
index 59bc9f0fc48fbae45e4845f3da4b9722101c0afc..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,