git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#46 StretchLayoutManager working
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoMainWindow.java
diff --git
a/src/jexer/demos/DemoMainWindow.java
b/src/jexer/demos/DemoMainWindow.java
index 54234ba32a3a9ab56cea51e81171a6c3943c53df..1c8b4fbc154c3cf4d799990d09767fbaaf980f58 100644
(file)
--- a/
src/jexer/demos/DemoMainWindow.java
+++ b/
src/jexer/demos/DemoMainWindow.java
@@
-44,6
+44,7
@@
import jexer.TTimer;
import jexer.TWidget;
import jexer.TWindow;
import jexer.event.TCommandEvent;
import jexer.TWidget;
import jexer.TWindow;
import jexer.event.TCommandEvent;
+import jexer.layout.StretchLayoutManager;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
@@
-108,6
+109,8
@@
public class DemoMainWindow extends TWindow {
// centered on screen.
super(parent, i18n.getString("windowTitle"), 0, 0, 64, 23, flags);
// centered on screen.
super(parent, i18n.getString("windowTitle"), 0, 0, 64, 23, flags);
+ setLayoutManager(new StretchLayoutManager(getWidth(), getHeight()));
+
int row = 1;
// Add some widgets
int row = 1;
// Add some widgets