mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
GUI: always bring dialog windows to front
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1956 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
fb6ceb24a2
commit
8a8e8f1a6c
@ -116,9 +116,14 @@ public class AcceptCertificateDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
setVisible(true);
|
||||
toFront();
|
||||
requestFocus();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
@ -133,9 +133,16 @@ public class NotificationDialog extends JDialog {
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
bodyField.requestFocus();
|
||||
setVisible(true);
|
||||
toFront();
|
||||
requestFocus();
|
||||
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
protected JPanel getRecipientsPanel() {
|
||||
|
@ -109,9 +109,14 @@ public class PasswordPromptDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
setVisible(true);
|
||||
toFront();
|
||||
requestFocus();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
@ -82,9 +82,14 @@ public class SelectCertificateDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
setVisible(true);
|
||||
toFront();
|
||||
requestFocus();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
Loading…
Reference in New Issue
Block a user