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
Merge commit '712ddafb749aada41daab85c36ac12f657b2307e'
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoApplication.java
diff --git
a/src/jexer/demos/DemoApplication.java
b/src/jexer/demos/DemoApplication.java
index 0e4f189c5760493622bb0ce9c17536de96fc3c13..3e4cbe92d56bcde373a7c6ec1d05e2327e86c0b1 100644
(file)
--- a/
src/jexer/demos/DemoApplication.java
+++ b/
src/jexer/demos/DemoApplication.java
@@
-135,7
+135,10
@@
public class DemoApplication extends TApplication {
* @throws Exception if TApplication can't instantiate the Backend.
*/
public DemoApplication(final BackendType backendType) throws Exception {
* @throws Exception if TApplication can't instantiate the Backend.
*/
public DemoApplication(final BackendType backendType) throws Exception {
- super(backendType);
+ // For the Swing demo, use an initial size of 82x28 so that a
+ // terminal window precisely fits the window.
+ super(backendType, (backendType == BackendType.SWING ? 82 : -1),
+ (backendType == BackendType.SWING ? 28 : -1), 20);
addAllWidgets();
getBackend().setTitle(i18n.getString("applicationTitle"));
}
addAllWidgets();
getBackend().setTitle(i18n.getString("applicationTitle"));
}
@@
-236,6
+239,7
@@
public class DemoApplication extends TApplication {
item = swingMenu.addItem(3001, i18n.getString("smaller"));
}
item = swingMenu.addItem(3001, i18n.getString("smaller"));
}
+ addTableMenu();
addWindowMenu();
addHelpMenu();
}
addWindowMenu();
addHelpMenu();
}