[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] How to avoid flicker in label update in non-ui thread

Hello,

I've a problem with a label and flickering. I want to create some kind of stopwatch program in SWT and i succeeded to create an application
with a non-ui thread in which the elapsed time is calculated. In
this thread the label also gets updated via setText(). Everything works fine 'till i start to use a font for my label displaying the time. When i do this the label start flickering. I suppose this has to do with the short sleep time for the thread (10). However this is necessary since applications like a stopwatch needs that accuracy. My question is how can I avoid this? Canvas and drawString? Other method for the labels ?
Other approach? Jface ?


Tnx in advance for the answers.

Kind regards,
Tom