Results 1 to 2 of 2
Thread: Shell() throws SWTException
- 11-09-2009, 08:18 AM #1
Member
- Join Date
- Nov 2009
- Posts
- 4
- Rep Power
- 0
Shell() throws SWTException
Hi,
The following code throws SWTException: Invalid thread access
Java Code:MessageDialog.openError(new Shell(), "error", "invalid path");
I have tried modifying this code as follows:
Java Code:final Display display = new Display(); display.syncExec (new Runnable () { public void run () { MessageDialog.openError(display.getDefault().getActiveShell(), "error", "invalid path"); } });
but no vain, how to solve this issue?Last edited by royalibrahim; 11-09-2009 at 10:41 AM.
- 11-09-2009, 01:59 PM #2
Member
- Join Date
- Nov 2009
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
org.eclipse.swt.SWTException: Invalid thread access
By int80 in forum New To JavaReplies: 2Last Post: 08-14-2009, 11:16 AM -
Execute() throws an NPE
By mjz in forum JDBCReplies: 0Last Post: 08-06-2009, 03:25 AM -
getting following error org.eclipse.swt.SWTException: Invalid thread access
By Madhavee Latha in forum SWT / JFaceReplies: 1Last Post: 03-24-2009, 01:52 PM -
throws
By jdgallag in forum New To JavaReplies: 14Last Post: 02-11-2009, 02:07 AM -
throws Exception
By javaplus in forum New To JavaReplies: 1Last Post: 11-06-2007, 08:32 PM
Bookmarks