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
TEditor 80% complete
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoMainWindow.java
diff --git
a/src/jexer/demos/DemoMainWindow.java
b/src/jexer/demos/DemoMainWindow.java
index 598ac7f0ce92f889d56a78a6b42d7f41675dad02..8840605e017ef90a00fcc210d86fafd42ae250df 100644
(file)
--- a/
src/jexer/demos/DemoMainWindow.java
+++ b/
src/jexer/demos/DemoMainWindow.java
@@
-77,7
+77,7
@@
public class DemoMainWindow extends TWindow {
private DemoMainWindow(final TApplication parent, final int flags) {
// Construct a demo window. X and Y don't matter because it will be
// centered on screen.
private DemoMainWindow(final TApplication parent, final int flags) {
// Construct a demo window. X and Y don't matter because it will be
// centered on screen.
- super(parent, "Demo Window", 0, 0, 6
0
, 23, flags);
+ super(parent, "Demo Window", 0, 0, 6
4
, 23, flags);
int row = 1;
int row = 1;
@@
-123,13
+123,20
@@
public class DemoMainWindow extends TWindow {
row += 2;
addLabel("Editor window", 1, row);
row += 2;
addLabel("Editor window", 1, row);
- addButton("
Edito&r
", 35, row,
+ addButton("
&1 Widget
", 35, row,
new TAction() {
public void DO() {
new DemoEditorWindow(getApplication());
}
}
);
new TAction() {
public void DO() {
new DemoEditorWindow(getApplication());
}
}
);
+ addButton("&2 Window", 48, row,
+ new TAction() {
+ public void DO() {
+ new TEditorWindow(getApplication());
+ }
+ }
+ );
row += 2;
addLabel("Text areas", 1, row);
row += 2;
addLabel("Text areas", 1, row);