//ta.addUndoableEditListener(bPanel.undoListener);
JComponent ex = parent.getExtra(fields[i], ta);
// Add autocompleter listener, if required for this field:
AbstractAutoCompleter autoComp = bPanel.getAutoCompleter(fields[i]);
AutoCompleteListener acl = null;
if (autoComp != null) {
acl = new AutoCompleteListener(autoComp);
}
setupJTextComponent(ta.getTextComponent(), acl);