X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTComboBox.java;h=1ef6bcd4ffd8ecd3a518646f7095412236e4d629;hb=382bc294dd88b71639fdd6c73216d2519635a080;hp=0814177d495d858ee02d6df734336dcd4fe41019;hpb=e9bb3c1e57e52ea19a153059a3f42656ea6ed51c;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());