Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Checkbox on table header
Checkbox on table header [message #525624] Wed, 07 April 2010 08:49 Go to next message
Mustufa Kasidwala is currently offline Mustufa KasidwalaFriend
Messages: 60
Registered: July 2009

How can we add a checkbox on table header?

Thanks and Regards

Mustufa Kasidwala
Re: Checkbox on table header [message #525639 is a reply to message #525624] Wed, 07 April 2010 10:05 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 07.04.2010 10:49, Mustufa Kasidwala wrote:
> How can we add a checkbox on table header?

You have to assign an image that looks like a checkbox.
See e.g. in the snippet nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/

how this can be done ("makeShot"). You will have to program the
image-switch on selection on your own. Note that the above quoted
example does use the image for a label provider. You cannot do
this, but you have to assign the image to the TableColumn instead.
This means you will also have to register the selection listener
to that TableColumn.

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Layout size adjusted to its controls prefered size
Next Topic:Browser and MHTML
Goto Forum:

Current Time: Sat Jan 25 10:40:26 GMT 2020

Powered by FUDForum. Page generated in 0.01379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top