mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 21:00:45 +00:00
Fixed: Java 8 compatibility
This commit is contained in:
+2
-2
@@ -732,7 +732,7 @@ public class InstancePropertiesPanel extends AbstractPropertiesPanel {
|
||||
DefaultComboBoxModel<String> model = (DefaultComboBoxModel<String>) blendingComboBox.getModel();
|
||||
if (blendMode.size() > 1) {
|
||||
if (!model.getElementAt(0).equals("")) {
|
||||
model.addAll(0, Arrays.asList(""));
|
||||
model.insertElementAt("", 0);
|
||||
}
|
||||
blendingComboBox.setSelectedIndex(0);
|
||||
} else {
|
||||
@@ -758,7 +758,7 @@ public class InstancePropertiesPanel extends AbstractPropertiesPanel {
|
||||
|
||||
if (backgroundColor.contains(null)) {
|
||||
if (backgroundModel.getSize() == 2) {
|
||||
backgroundModel.addAll(0, Arrays.asList(""));
|
||||
backgroundModel.insertElementAt("", 0);
|
||||
}
|
||||
backgroundComboBox.setSelectedIndex(0);
|
||||
backgroundColorPanel.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user