JFace dialog button bar doesn't show until dialog is resized [message #484972] |
Thu, 10 September 2009 04:08 |
Eclipse User |
|
|
|
Originally posted by: crni.adjah.gmail.com
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds