mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- ComboBoxWrapper will retain whether its combobox is enabled or not with a skin change
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user