How to make a JFace dialog resizable in eclipse?
We can invoke
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
in the dialog's construntor.
For example:
public class DifferencesDialog extends Dialog {
Thanks to: http://www.eclipse.org/forums/index.php/m/284206/
We can invoke
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
in the dialog's construntor.
For example:
public class DifferencesDialog extends Dialog {
public MyDialog(Shell parentShell) {
super(parentShell);
setShellStyle(getShellStyle() | SWT.MAX | SWT.RESIZE);
}
//Remainder is omitted
.....
}
No comments:
Post a Comment
தங்களின் மேலான கருத்துக்கள் வரவேற்கப்படுகின்றன.. :)