#46 StretchLayoutManager working
[fanfix.git] / src / jexer / demos / DemoTextFieldWindow.java
index 7eb68d6a0c9d58300fcafbc8962800b6ee252b2a..6e6b33099cc555886846d7db47ddfa3566d588c4 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,8 @@ public class DemoTextFieldWindow extends TWindow {
         // will be centered on screen.
         super(parent, i18n.getString("windowTitle"), 0, 0, 60, 20, flags);
 
+        setLayoutManager(new StretchLayoutManager(getWidth(), getHeight()));
+
         int row = 1;
 
         addLabel(i18n.getString("textField1"), 1, row);