#46 StretchLayoutManager working
[fanfix.git] / src / jexer / demos / DemoCheckBoxWindow.java
index c982244f9d2e5ad1bf68ef36ce552a6262169dff..aa29506bceec5da91290044dded063fd80c0ce1a 100644 (file)
@@ -39,6 +39,7 @@ import jexer.TComboBox;
 import jexer.TMessageBox;
 import jexer.TRadioGroup;
 import jexer.TWindow;
+import jexer.layout.StretchLayoutManager;
 import static jexer.TCommand.*;
 import static jexer.TKeypress.*;
 
@@ -87,6 +88,8 @@ public class DemoCheckBoxWindow extends TWindow {
         // centered on screen.
         super(parent, i18n.getString("windowTitle"), 0, 0, 60, 17, flags);
 
+        setLayoutManager(new StretchLayoutManager(getWidth(), getHeight()));
+
         int row = 1;
 
         // Add some widgets