This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
 
subject: SWT question