[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: SWT Label redraw()/update()
|
Calling the Composite.layout() on the Label's parent Composite did the
trick. Thanks alot for your advice.
Florian Georg wrote:
> Hi,
> Calling "layout()" on the parent Composite might help.
> (I have had a simmilar problem when adding/disposing controls
> within a composite dynamically)
> - Florian
> Don Sedota wrote:
> > I can't seem to get the repaint or specifically the redraw(), followed by
> > an update(), to work for SWT labels within my plugin. I am trying to
> > update the text in a particular Label within a customized view by doing
> > the following while inside the event loop thread;
> >
> > label.setText(someText);
> > label.redraw();
> > label.update();
> >
> > It looks like the label.setText() is working, but the Label does not
> > reflect the changes until I resize the screen. Does anyone have any idea
> > what I might be missing? BTW - I'm running the plugin via the runtime
> > workbench, if that makes any difference.
> >
> >
> >