mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-23 04:11:54 -04:00
Avoids an unnecessary pack, see #637
This commit is contained in:
parent
faf4836e17
commit
92f44c6523
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user