mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -04:00
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:
parent
fa7e894496
commit
60ac829aa1
@ -98,6 +98,7 @@ public class AttributeDialog extends JDialog {
|
|||||||
getRootPane().registerKeyboardAction(cancel,
|
getRootPane().registerKeyboardAction(cancel,
|
||||||
KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
|
KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
|
||||||
JComponent.WHEN_IN_FOCUSED_WINDOW);
|
JComponent.WHEN_IN_FOCUSED_WINDOW);
|
||||||
|
setAlwaysOnTop(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,6 +106,7 @@ public final class SingleValueDialog extends JDialog {
|
|||||||
setLocation(pos.x, pos.y);
|
setLocation(pos.x, pos.y);
|
||||||
textField.requestFocus();
|
textField.requestFocus();
|
||||||
textField.select(0, Integer.MAX_VALUE);
|
textField.select(0, Integer.MAX_VALUE);
|
||||||
|
setAlwaysOnTop(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private JPanel createCheckBoxPanel(int bits, long value) {
|
private JPanel createCheckBoxPanel(int bits, long value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user