• Post Reply Bookmark Topic Watch Topic
  • New Topic

invalid thread access

 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have method is there


NativeInterfaceHandler.init();
Toolkit.getDefaultToolkit().setDynamicLayout(true);
SwingUtilities.invokeLater(new Runnable() {
public void run() {

ManageDocuments md = new ManageDocuments(path);
md.setVisible(true);
}

});
NativeInterfaceHandler.runEventPump();



i am getting this exception
how can solve this one


org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.error(Unknown Source)
at org.eclipse.swt.widgets.Display.checkDevice(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at chrriis.dj.nativeswing.NativeInterfaceHandler.dispatch(NativeInterfaceHandler.java:300)
at chrriis.dj.nativeswing.NativeInterfaceHandler.runEventPump(NativeInterfaceHandler.java:293)
at com.instacoll.livedocuments.oo.userinterface.ManageDocuments.showManage(ManageDocuments.java:2434)
at com.instacoll.livedocuments.oo.userinterface.ManageDocuments.showManageApp(ManageDocuments.java:2399)
at com.instacoll.livedocuments.oo.userinterface.show$1.run(show.java:29)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!