mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Execute AWT frames handling in AWT thread
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@345 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
667e0aa13c
commit
5c47845a81
@ -166,7 +166,7 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
final AboutFrame aboutFrame = new AboutFrame();
|
||||
aboutItem.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
display.asyncExec(
|
||||
SwingUtilities.invokeLater(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
aboutFrame.update();
|
||||
@ -179,7 +179,7 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
final SettingsFrame settingsFrame = new SettingsFrame();
|
||||
trayItem.addListener(SWT.DefaultSelection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
display.asyncExec(
|
||||
SwingUtilities.invokeLater(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
settingsFrame.reload();
|
||||
@ -196,7 +196,7 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
defaultItem.setText("Settings...");
|
||||
defaultItem.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
display.asyncExec(
|
||||
SwingUtilities.invokeLater(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
settingsFrame.reload();
|
||||
@ -212,7 +212,7 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
logItem.setText("Show logs...");
|
||||
logItem.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
display.asyncExec(
|
||||
SwingUtilities.invokeLater(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user