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
#53 progress bar style
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoTextFieldWindow.java
diff --git
a/src/jexer/demos/DemoTextFieldWindow.java
b/src/jexer/demos/DemoTextFieldWindow.java
index 7eb68d6a0c9d58300fcafbc8962800b6ee252b2a..2c6116a980a4c0c243599c82a99fc0abee09f4a1 100644
(file)
--- a/
src/jexer/demos/DemoTextFieldWindow.java
+++ b/
src/jexer/demos/DemoTextFieldWindow.java
@@
-42,6
+42,7
@@
import jexer.TField;
import jexer.TLabel;
import jexer.TMessageBox;
import jexer.TWindow;
import jexer.TLabel;
import jexer.TMessageBox;
import jexer.TWindow;
+import jexer.layout.StretchLayoutManager;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
@@
-100,6
+101,9
@@
public class DemoTextFieldWindow extends TWindow {
// will be centered on screen.
super(parent, i18n.getString("windowTitle"), 0, 0, 60, 20, flags);
// will be centered on screen.
super(parent, i18n.getString("windowTitle"), 0, 0, 60, 20, flags);
+ setLayoutManager(new StretchLayoutManager(getWidth() - 2,
+ getHeight() - 2));
+
int row = 1;
addLabel(i18n.getString("textField1"), 1, row);
int row = 1;
addLabel(i18n.getString("textField1"), 1, row);