mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
GUI: force alwaysOnTop on dialogs to make sure they are visible
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1967 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e7dfb07bba
commit
d6d5e66d01
@ -116,14 +116,8 @@ public class AcceptCertificateDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
setAlwaysOnTop(true);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
@ -132,17 +132,8 @@ public class NotificationDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
bodyField.requestFocus();
|
||||
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
|
||||
setAlwaysOnTop(true);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected JPanel getRecipientsPanel() {
|
||||
|
@ -109,14 +109,8 @@ public class PasswordPromptDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
setAlwaysOnTop(true);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
@ -82,14 +82,8 @@ public class SelectCertificateDialog extends JDialog {
|
||||
getSize().width / 2,
|
||||
getToolkit().getScreenSize().height / 2 -
|
||||
getSize().height / 2);
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
requestFocus();
|
||||
}
|
||||
});
|
||||
setAlwaysOnTop(true);
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
protected JPanel getButtonPanel() {
|
||||
|
@ -159,6 +159,7 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
|
||||
settingsFrame.reload();
|
||||
settingsFrame.setVisible(true);
|
||||
settingsFrame.toFront();
|
||||
settingsFrame.repaint();
|
||||
settingsFrame.requestFocus();
|
||||
}
|
||||
});
|
||||
@ -317,6 +318,7 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
|
||||
if (Settings.isFirstStart()) {
|
||||
settingsFrame.setVisible(true);
|
||||
settingsFrame.toFront();
|
||||
settingsFrame.repaint();
|
||||
settingsFrame.requestFocus();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user