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
mlterm fully supports features
[fanfix.git]
/
src
/
jexer
/
TComboBox.java
diff --git
a/src/jexer/TComboBox.java
b/src/jexer/TComboBox.java
index 0814177d495d858ee02d6df734336dcd4fe41019..1ef6bcd4ffd8ecd3a518646f7095412236e4d629 100644
(file)
--- a/
src/jexer/TComboBox.java
+++ b/
src/jexer/TComboBox.java
@@
-96,13
+96,12
@@
public class TComboBox extends TWidget {
this.updateAction = updateAction;
this.updateAction = updateAction;
- field = new TField(this, 0, 0, width - 3, false, "",
- updateAction, null);
+ field = addField(0, 0, width - 3, false, "", updateAction, null);
if (valuesIndex >= 0) {
field.setText(values.get(valuesIndex));
}
if (valuesIndex >= 0) {
field.setText(values.get(valuesIndex));
}
- list =
new TList(this,
values, 0, 1, width, valuesHeight,
+ list =
addList(
values, 0, 1, width, valuesHeight,
new TAction() {
public void DO() {
field.setText(list.getSelected());
new TAction() {
public void DO() {
field.setText(list.getSelected());