This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 24189

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: no resize in SWT
It's not a secret anymore!