File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 24183

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?

jQuery in Action, 2nd edition
subject: no resize in SWT
Similar Threads
How to remove menuitem from context menu (SWT)
SWT on any other IDE?
Free GUI Library
SWT - File pulldown menu
Swing or AWT for GUI ??