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

Chapter 15. SWT CoolBars > Creating a CoolBar

15.1. Creating a CoolBar

The steps required to create a CoolBar are similar to those required to create a ToolBar, except that an instance of CoolBar is created instead of ToolBar and instances of CoolItem are created in place of the ToolItem instances for the individual buttons. The similarity ends there, however.

The CoolItem objects created serve only as containers for other widgets. If you want to create a CoolBar similar in appearance to the ToolBar from Chapter 4, you must create individual Button objects that are added to the corresponding CoolItem. A good understanding of CoolBar can be gained by going through the process of creating a CoolBar similar in appearance to the ToolBar created in Chapter 4.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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