aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes no resize in SWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "no resize in SWT" Watch "no resize in SWT" New topic
Author

no resize in SWT

Stoonqtes halazoonates
Greenhorn

Joined: Apr 06, 2009
Posts: 6
Hello
How can I dis activate the resizing of a window in SWT
thanks


SCJP 1.6
SCWCD 1.5 [Soon]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

When you create a "Shell" -- a top-level SWT window -- you provide some number of style constants, or-ed together. If you include neither SWT.RESIZE nor SWT.SHELL_TRIM, the window will not be resizeable.


[Jess in Action][AskingGoodQuestions]
Stoonqtes halazoonates
Greenhorn

Joined: Apr 06, 2009
Posts: 6
thanks for the answer Ernest Friedman-Hill
but the problem is that I'm using Jface, so I don't create the shell my self, it is created automatically!

can I change it's properties to make it none re sizable?

thanks
 
 
subject: no resize in SWT