Ensure that the modal dialogs AttributeDialog and SingleValueDialog are in front of other dialogs like the dialog of the GraphicRAM or the terminal dialog

This commit is contained in:
hneemann 2017-03-11 13:51:59 +01:00
parent fa7e894496
commit 60ac829aa1
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public class AttributeDialog extends JDialog {
getRootPane().registerKeyboardAction(cancel,
KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
JComponent.WHEN_IN_FOCUSED_WINDOW);
setAlwaysOnTop(true);
}
/**

View File

@ -106,6 +106,7 @@ public final class SingleValueDialog extends JDialog {
setLocation(pos.x, pos.y);
textField.requestFocus();
textField.select(0, Integer.MAX_VALUE);
setAlwaysOnTop(true);
}
private JPanel createCheckBoxPanel(int bits, long value) {