[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] JFace dialog button bar doesn't show until dialog is resized

Hi,

I extend a JFace dialog to make my own. First I implement the createDialogArea
method, and add all of the components that I want the dialog to contain. Since
I want the dialog to be a certain size (450x450p) at the end of
createDialogArea I call these two methods:
shell.setSize(400, 400);
shell.layout();


where the shell is acquired at the beginning of the method like this:
Composite composite = (Composite)super.createDialogArea(parent);
shell = composite.getShell();

when the dialog opens, dialog area shows fine but the OK and cancel buttons
don't until i re size the dialog a little and then it's all fine.

Thanks in advance for any help with this, I tried everything and can't find an
acceptable solution.