my dog learned polymorphism
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "no resize in SWT" Watch "no resize in SWT" New topic

no resize in SWT

Stoonqtes halazoonates

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

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

Joined: Jul 08, 2003
Posts: 24195

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

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?

I agree. Here's the link:
subject: no resize in SWT
It's not a secret anymore!