aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes SWT question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT question" Watch "SWT question" New topic
Author

SWT question

igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
Hello, I've built a SWT browser. I'm calling it from a Swing application using new Browser("url"). The problem I have is this, it works the first time I call it but after that , I get an Invalid Thread Access exception. Any thoughts on how to fix this? I want to be able to call as many Browsers as I choose by pressing a button on my swing app. Thanks.
Scott Delap
author
Ranch Hand

Joined: Apr 05, 2005
Posts: 73
Assuming your thread issues are coming from the SWT side I would guess you are trying to access a SWT component from a thread that isn't the UI thread.

Scott Delap
ClientJava.com
Desktop Java Live
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT question