[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Repainting question
|
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.