Monday, November 28, 2011

How to make a JFace dialog resizable in eclipse?

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 {

    public MyDialog(Shell parentShell) {
         super(parentShell);
    setShellStyle(getShellStyle() | SWT.MAX | SWT.RESIZE);
    }
//Remainder is omitted
.....
}

Thanks to: http://www.eclipse.org/forums/index.php/m/284206/

No comments:

Post a Comment

தங்களின் மேலான கருத்துக்கள் வரவேற்கப்படுகின்றன.. :)

பிடித்தது :)