X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoMsgBoxWindow.java;h=0485f5184195a1a836f5842d1cda069ebe937dd6;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=c2d4ff61e8d5baf49cb59216ed9c96af222681b4;hpb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;p=fanfix.git diff --git a/src/jexer/demos/DemoMsgBoxWindow.java b/src/jexer/demos/DemoMsgBoxWindow.java index c2d4ff6..0485f51 100644 --- a/src/jexer/demos/DemoMsgBoxWindow.java +++ b/src/jexer/demos/DemoMsgBoxWindow.java @@ -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,9 @@ public class DemoMsgBoxWindow extends TWindow { // will be centered on screen. super(parent, i18n.getString("windowTitle"), 0, 0, 64, 18, flags); + setLayoutManager(new StretchLayoutManager(getWidth() - 2, + getHeight() - 2)); + int row = 1; // Add some widgets