Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Swt hangs swing gui

Thread view: 
ahmetbaki@gmail.com - 19 Feb 2007 16:15 GMT
Problem :  I have an application (applet) writtten with swing. I
decided to add a swt frame (shell) for embeding an activex control in
to that shell. any way my real problem is that
when the swt shell activates (opens) it hangs the swing gui thread. so
the the swing gui could not be repainted. on
the other hand if I open a swing dialog upon the swt shell, swing
dialog does not suspend the swt display thread as swt suspends swing.
how can I prevent swt to not hang swing gui thread.

can anyone help me ?
Andrew Thompson - 19 Feb 2007 16:43 GMT
> Problem :  I have an application (applet)

That is brave (or silly) in this day and age.

>..writtten with swing. I
> decided to add a swt frame (shell)

And combining that applet with SWT?
Braver/sillier.

>...for embeding an activex control

<tongue in cheek>
Why not just say 'I am evil' and
get it over and done with?
</tongue in cheek>

*

>...in
> to that shell. any way my real problem is that
[quoted text clipped - 5 lines]
>
> can anyone help me ?

You might try launching your SWT functionality
in a separate thread.

OTOH, I would also suggest sticking with
Swing components exclusively, and deploying
the app. using web start.

* Also, what does the ActiveX control do?
If it requires trust, the applet will need
to be signed.  Have you checked the Java
console for exceptions or errors?

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.