Setting dialog title [message #772387] |
Thu, 29 December 2011 11:44  |
Eclipse User |
|
|
|
Okay, I have a dialog that extends org.eclipse.jface.dialogs.Dialog
The constructor is:
public AccountDialog( Shell parent) {
super(parent);
setShellStyle(SWT.DIALOG_TRIM);
parent.setText("Create Account");
parent.setMinimumSize(300, 0);
return;
}
It's just that the setText() and setMinimumSize() don't seem to actually do anything.
The dialog has a blank titlebar, and the width is too small.
Dialog is just barely big enough for the OK/Cancel buttons, text entry fields are way too small. Dialog is a good width in the Window Designer, it's just a lot smaller when it actually runs.
|
|
|
|
|
Re: Setting dialog title [message #775420 is a reply to message #774511] |
Thu, 05 January 2012 19:04  |
Eclipse User |
|
|
|
Thanks, that let me do what I needed.
I really wanted to be able to set the title from within the Dialog code, and not require the caller to set it.
So I added this to my Dialog class, and it works!
public void create() {
super.create();
getShell().setText("Create Filter Group");
return;
}
|
|
|
Powered by
FUDForum. Page generated in 0.04206 seconds