Avoids an unnecessary pack, see #637

This commit is contained in:
hneemann 2021-02-04 09:50:57 +01:00
parent faf4836e17
commit 92f44c6523

View File

@ -168,7 +168,7 @@ public final class SingleValueDialog extends JDialog implements ModelStateObserv
KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
JComponent.WHEN_IN_FOCUSED_WINDOW);
pack();
updateSeparators();
Screen.setLocation(this, pos, true);
textField.requestFocus();
textField.select(0, Integer.MAX_VALUE);
@ -209,7 +209,6 @@ public final class SingleValueDialog extends JDialog implements ModelStateObserv
checkBoxes[bit].addActionListener(actionEvent -> setBit(bit, checkBoxes[bit].isSelected()));
p.add(checkBoxes[bit]);
}
updateSeparators();
return p;
}