Skip to main content

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

> From: Joe Pluta
>
> Hey, who knows, it may just be that I need some basic SWT 101
> training.
>
> The only way I've found to correct this behavior is to either call
> pack() every time...

Calling Shell.layout() does the same thing as pack().  Specifically, while
it does indeed show the new contents of the label, it shortens the input
field to the size of the entered field.  So maybe my problem is not the
label, but figuring out how to get the Text field not to shorten itself.  My
guess is that some sort of setSize() might do the trick, or using a
GridData, but I can't find anything.

These sorts of behaviors are the ones that are making me a little crazy.
Once I get past them, I'm sure I'll be fine.

Joe



Back to the top