void (JComboBox combo, List<String> lastValues) { combo.setModel(new DefaultComboBoxModel(ArrayUtilRt.toStringArray(lastValues))); if (combo.getItemCount() != 0) { combo.setSelectedIndex(0); combo.getEditor().selectAll(); } }