mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +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.addKeyListener(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newComboBox.setEnabled(comboBox.isEnabled());
|
||||||
newComboBox.setRenderer(comboBox.getRenderer());
|
newComboBox.setRenderer(comboBox.getRenderer());
|
||||||
newComboBox.setTextAlignment(comboBox.getTextAlignment());
|
newComboBox.setTextAlignment(comboBox.getTextAlignment());
|
||||||
if (comboBox.getSkinFont() != null) {
|
if (comboBox.getSkinFont() != null) {
|
||||||
newComboBox.setSkinFont(comboBox.getSkinFont());
|
newComboBox.setSkinFont(comboBox.getSkinFont());
|
||||||
}
|
}
|
||||||
|
|
||||||
//replace combo box with its copy so skin updated
|
//replace combo box with its copy so skin updated
|
||||||
parent.remove(index);
|
parent.remove(index);
|
||||||
parent.add(newComboBox, constraints, index);
|
parent.add(newComboBox, constraints, index);
|
||||||
|
|||||||
Reference in New Issue
Block a user