X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTComboBox.java;h=1ef6bcd4ffd8ecd3a518646f7095412236e4d629;hb=9f613a0c54cb97e9305fd87ce8eb2f76ac82804e;hp=0814177d495d858ee02d6df734336dcd4fe41019;hpb=af56159c6460ab42f06e30d4e677c67f64e3ea8e;p=fanfix.git diff --git a/src/jexer/TComboBox.java b/src/jexer/TComboBox.java index 0814177..1ef6bcd 100644 --- a/src/jexer/TComboBox.java +++ b/src/jexer/TComboBox.java @@ -96,13 +96,12 @@ public class TComboBox extends TWidget { 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)); } - 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());