On 1/16/2009 8:51 AM, adithya wrote:
> Hi..I am developing an editor using SWT/JFace and I am specifying the
> size of the window using
> but its not working.
> I don't want the user to maximize the window i.e. I want the size to be
> what I have decided..How do I do this??
When you create the shell, what style bits (int argument) are you
passing to the constructor?
See the class Javadoc under the title "Styles:" for what bits can be
used and then look in the SWT class for their meanings.
On 1/17/2009 6:42 AM, adithya wrote:
> This is what i have done..
> public class EditorTry7 extends ApplicationWindow
> public EditorTry7()
<snipped more code>
> I dint get any option as Styles,as there is no argument in "open()"
> What should i do as to disable resizing.
Look at your call to the super constructor; do you know why you're
passing null? Do you know the ramifications of doing so, instead of
passing in a Shell object?
Also look at the methods that ApplicationWindow inherits from Window,
A little reading of the Javadoc and the source code will go a long way.