• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. SWT CoolBars > Using Events with CoolBars

15.2. Using Events with CoolBars

Unlike ToolItem, no events are associated directly with a CoolItem. Rather, events are associated with the widget that is assigned to the CoolItem.

15.2.1. How do I do that?

Example 15-1 assigns a SelectionListener to each Button to handle the event caused by the user clicking the button:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint