Fixed IllegalArgumentException: JSplitPane weight must be between 0 and 1

This commit is contained in:
Jindra Petřík
2023-02-25 19:39:02 +01:00
parent 76eff8b53c
commit de02aa86f6
2 changed files with 2 additions and 1 deletions
@@ -1653,7 +1653,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
public void showDisplayEditTagPanel(Tag tag, int frame) {
showCardLeft(DISPLAYEDIT_TAG_CARD);
displayEditTag = tag;
displayEditSplitPane.setDividerLocation((int) (0.6 * this.getWidth()));
displayEditSplitPane.setDividerLocation(0.6);
displayEditGenericPanel.setVisible(!readOnly);
if (Configuration.editorMode.get()) {