Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Add Listener for when a checkbox in a tree is checked.
Add Listener for when a checkbox in a tree is checked. [message #453877] Wed, 13 April 2005 15:43 Go to next message
Eclipse UserFriend
Originally posted by: mmvjose.gmail.com

hi @ all

I've created a tree with checkboxes using the SWT.CHECK style like this...
tree = new Tree(shell, SWT.CHECK | SWT.SINGLE);

...and now I want to add a listener for when I check a Checkbox. How can I
do this? The treeitems have only two methods for adding listeners:
- addDisposeListener
- addListener

both don't seem to suit me.
Can anybody help?

Thanks in advance!
Re: Add Listener for when a checkbox in a tree is checked. [message #453911 is a reply to message #453877] Wed, 13 April 2005 18:03 Go to previous message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet114.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Emil

"Marco "Jos
Previous Topic:Cursor in an editable table
Next Topic:Stop movement of slider
Goto Forum:
  


Current Time: Fri Apr 26 19:23:32 GMT 2024

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

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

Back to the top