SWT-Swing Problem! [message #323618] |
Thu, 03 January 2008 22:50  |
Eclipse User |
|
|
|
Originally posted by: hiteshn.mail.gmail.com
Hi All,
I created a simple application where I put a JDialog inside a JFrame. When I
move the JFrame within the editor area or after some interval of time, the
workbench gets hanged and it doesn't respond at all.
Can someone please suggest me the correct way of doing it....
Thanks,
Hitesh...
|
|
|
|
Re: SWT-Swing Problem! [message #323632 is a reply to message #323618] |
Fri, 04 January 2008 11:03  |
Eclipse User |
|
|
|
Originally posted by: davidhuebel.example.net
Hitesh Nembhwani wrote:
> Hi All,
>
> I created a simple application where I put a JDialog inside a JFrame. When
> I move the JFrame within the editor area or after some interval of time,
> the workbench gets hanged and it doesn't respond at all.
> Can someone please suggest me the correct way of doing it....
>
> Thanks,
> Hitesh...
Hi Hitesh,
I had similar behavior with my first Swing/SWT program. What I forgot to
account for is that there are two event-handling threads, one for Swing and
one for SWT. If you call a Swing method that should only be called from
the Swing event-handling thread, and you call it from the SWT
event-handling thread by mistake, you can get lockups. They might be
sporadic, or they might happen consistently.
-David
|
|
|
Powered by
FUDForum. Page generated in 0.03215 seconds