June 2004
Beginner to intermediate
364 pages
7h 38m
English
You want to add images to tree items.
Use the TreeItem class’s
setImage and getImage methods.
To install an image for a tree item, pass the
setImage method a new Image
object. To see how to create Image objects, take a
look at the Recipe 9.9 in Chapter 9. To get the image from a tree item, use the
getImage method.
Recipe 9.9 on creating image menu items; Recipe 10.5 on creating trees in SWT; Recipe 10.6 on handling tree events; Recipe 10.7 on adding checkboxes to tree items.
Read now
Unlock full access