#46 StretchLayoutManager working
[fanfix.git] / src / jexer / demos / DemoMsgBoxWindow.java
index c2d4ff61e8d5baf49cb59216ed9c96af222681b4..7d106c7b1087e60a82617bdcf2017df09603f2bc 100644 (file)
@@ -36,6 +36,7 @@ import jexer.TApplication;
 import jexer.TInputBox;
 import jexer.TMessageBox;
 import jexer.TWindow;
+import jexer.layout.StretchLayoutManager;
 import static jexer.TCommand.*;
 import static jexer.TKeypress.*;
 
@@ -73,6 +74,8 @@ public class DemoMsgBoxWindow extends TWindow {
         // will be centered on screen.
         super(parent, i18n.getString("windowTitle"), 0, 0, 64, 18, flags);
 
+        setLayoutManager(new StretchLayoutManager(getWidth(), getHeight()));
+
         int row = 1;
 
         // Add some widgets