Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[nikiroo-utils.git] / src / jexer / demos / DemoTextFieldWindow.java
index 7eb68d6a0c9d58300fcafbc8962800b6ee252b2a..2c6116a980a4c0c243599c82a99fc0abee09f4a1 100644 (file)
@@ -42,6 +42,7 @@ import jexer.TField;
 import jexer.TLabel;
 import jexer.TMessageBox;
 import jexer.TWindow;
+import jexer.layout.StretchLayoutManager;
 import static jexer.TCommand.*;
 import static jexer.TKeypress.*;
 
@@ -100,6 +101,9 @@ public class DemoTextFieldWindow extends TWindow {
         // will be centered on screen.
         super(parent, i18n.getString("windowTitle"), 0, 0, 60, 20, flags);
 
+        setLayoutManager(new StretchLayoutManager(getWidth() - 2,
+                getHeight() - 2));
+
         int row = 1;
 
         addLabel(i18n.getString("textField1"), 1, row);