[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Repainting question

Michael, can you provide a small stand alone snippet?  I can't see much from
the code you provided.  Also, if you are using JFAce, you might try
eclipse.platform.

"Michael Basnight" <mbasnight@xxxxxxxx> wrote in message
news:d4t8t0$47u$1@xxxxxxxxxxxxxxxxxxx
> Steve Northover wrote:
>
> > ave you tried Composite.layout()?
>
> Steve, thank you for your speedy reply.
>
> That does not seem to work. Here is a snippet of code.
> public void assembleGroup(Composite beanContainer) {
>
>  group = new Group(beanContainer, SWT.RESIZE);
>  group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
>  group.setFont(beanContainer.getFont());
>  group.setLayout(
> caipWizardPage.initGridLayout(
> new GridLayout(2, false), true));
>
>  beanNameLabel = new Label(group, SWT.NONE);
>  beanNameLabel.setText("&Bean Name ");
> ...
> }
> How can I dynamically change the size of the window that displays this
> textbox (beanNameLabel)? I extending off existing code within a new
> wizard plugin.
>
> I have tried
> beanContainer.layout();
> group.layout();
> beanContainer.getParent().layout().
>
> And I have also tried pack(), which seems to turn into a mess.
>
> thanks again.