< Day Day Up > |
Recipe 9.18 Adding Images to Table Items9.18.1 ProblemYou want to add images to table items. 9.18.2 SolutionTo give a table item an image, call the item's setImage method. 9.18.3 DiscussionJust pass a table item's setImage method an Image object to give the item an image. For more on creating Image objects, take a look at Recipe 9.9 earlier in this chapter. 9.18.4 See AlsoRecipe 9.9 on creating image menu items; Recipe 9.14 on creating tables; Recipe 9.16 on adding check marks to items in a table; Recipe 9.17 on enabling and disabling items in a table. |
< Day Day Up > |