button event delay [message #11852] |
Sat, 22 January 2005 14:48  |
Eclipse User |
|
|
|
Originally posted by: ryusasai.hotmail.com
Hi,
I wrote a java application with SWT using eclipse.
After launching, within first 10 hitting of buttons, one of them
is really slow, sometimes you have to 7 or 8 seconds for the
event to come to the button event handler.
After this one delay, the buttons are really responsive and
delay never happens, until you launch the application again.
Anyone having a good guess about this?
Thank you.
Raiu
|
|
|
Re: button event delay [message #15958 is a reply to message #11852] |
Tue, 25 January 2005 09:58  |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
What else are you doing? If you are executing a lot of Java
code in the main UI thread, no events will be handled.
In general, you should avoid doing lots of work in the UI thread.
Jobs should be used for expensive work that does not
need access to the UI immediately.
--
Chris Laffra, http://eclipsefaq.org
"Ryu" <ryusasai@hotmail.com> wrote in message
news:csualm$49r$1@www.eclipse.org...
> Hi,
>
> I wrote a java application with SWT using eclipse.
> After launching, within first 10 hitting of buttons, one of them
> is really slow, sometimes you have to 7 or 8 seconds for the
> event to come to the button event handler.
> After this one delay, the buttons are really responsive and
> delay never happens, until you launch the application again.
>
> Anyone having a good guess about this?
>
> Thank you.
>
> Raiu
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06486 seconds