Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Control.setBackground(Color)

>>>> You should either execute your "communicateWithServer" code in a
separate
>>>> thread and allow the UI thread to process events OR you can force the
OS
>>>> to process all outstanding Paint events using Control.update().  If you
>>>> use Control.update().

Thanks. That's a quick fix that helps.

>>>> Therefore it
>>>> would be much better to process your "communicateWithServer" code in a
>>>> separate thread.  You can reset the label to blue using
Display.asyncExec
>>>> when your "communicateWithServer" code completes.

That's an idea I will investigate. The Control.update() works fine at this
time, however; and it only took a second to add it.

Thanks again.



Back to the top