Jackson
Jackson

Reputation: 3518

Can you create a resizable control in SWT?

I am currently working with the SWT package in Eclipse. Is it possible to create a resizable control within a composite control.

For instance, if I have a tree control which I would like to expand, but in order to view the sub tree items I would like to 'click and drag' the border of the tree to resize it, much like the draggable divider in the Eclipse help website.

Upvotes: 0

Views: 1686

Answers (1)

Baz
Baz

Reputation: 36884

I think the SWT Sash is what you are looking for.

Here is a good example on how to use it.

EDIT:

Just found that SashForm is much easier to use. See LINK for a good example.

Upvotes: 1

Related Questions