Fixed: Java 8 compatibility

This commit is contained in:
Jindra Petřík
2024-10-29 20:02:07 +01:00
parent 15df4ea4b5
commit c7ae2276ac
3 changed files with 5 additions and 8 deletions
@@ -33,7 +33,7 @@ public class EasyPanel extends JPanel {
* TODO: switch to true when Easy mode is released.
* I think it's not production ready yet.
*/
public static final boolean EASY_AVAILABLE = true;
public static final boolean EASY_AVAILABLE = false;
private TabSwitcher<SWF> tabSwitcher;
private EasySwfPanel easySwfPanel;
@@ -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);