DirectoryVidalFarmItem parent = item.getParent();
farmStrings[i] = item.getTitle() + (parent != null ? " (" + parent.getTitle() + ")" : "");
}
DefaultComboBoxModel model = new DefaultComboBoxModel(directoryVidalFarm.toArray(false, true)/*farmStrings*/);
model.insertElementAt("", 0);
model.setSelectedItem("");
FilteredComboBoxModel filteredModel = new FilteredComboBoxModel(cbSearch, new FilteredComboBoxModel.MaskChecker(), false) {
@Override
public Object addItem(String txt) {