mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
Create GUI in AWT Thread
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@175 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
c51dcb9405
commit
21ae628e7e
@ -72,6 +72,14 @@ public class AwtGatewayTray implements DavGatewayTrayInterface {
|
||||
}
|
||||
|
||||
public void init() {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
createAndShowGUI();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void createAndShowGUI() {
|
||||
// set native look and feel
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
|
Loading…
x
Reference in New Issue
Block a user