Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: RE: [platform-swt-dev] org.eclipse.swt.SWT

>>>> When does setText in a label take effect?  As far as I can tell, not
until
>>>> you do a call to layout.  Or am I mistaken in this?

It takes effect immediately. Just look at the code that implements it. What
it doesn't do, however, is to resize your label from width zero to the width
needed to show the text you've set. So, in your case, the text you've set
remains invisible.



Back to the top