- ComboBoxWrapper will retain whether its combobox is enabled or not with a skin change

This commit is contained in:
moomarc
2014-01-20 07:05:47 +00:00
parent 7fc97562b2
commit 6ced3d38a4

View File

@@ -202,12 +202,13 @@ public class FComboBoxWrapper<E> {
newComboBox.addKeyListener(l);
}
newComboBox.setEnabled(comboBox.isEnabled());
newComboBox.setRenderer(comboBox.getRenderer());
newComboBox.setTextAlignment(comboBox.getTextAlignment());
if (comboBox.getSkinFont() != null) {
newComboBox.setSkinFont(comboBox.getSkinFont());
}
//replace combo box with its copy so skin updated
parent.remove(index);
parent.add(newComboBox, constraints, index);