fix typos and submenu mnemonic bug
[fanfix.git] / src / jexer / TComboBox.java
index 0814177d495d858ee02d6df734336dcd4fe41019..1ef6bcd4ffd8ecd3a518646f7095412236e4d629 100644 (file)
@@ -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());