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

Chapter 15. SWT CoolBars

Chapter 15. SWT CoolBars

Chapter 4 demonstrated the creation and use of SWT ToolBars. This chapter examines another set of classes that can be used to create ToolBar-like constructs—the SWT CoolBar and CoolItem classes from the org.eclipse.swt.widgets package.

A CoolBar is like a ToolBar on steroids. Like ToolBar and ToolItems, CoolBar is a container to which you add instances of the CoolItem class.Although a ToolItem object appears as a button on the ToolBar, a CoolItem serves only as a container for other widget types—Combo, Text, or Button. This makes a CoolBar a massively useful interface construct. In fact, the Eclipse toolbar is actually a CoolBar and is a great example of how to leverage the capability of the CoolBar and CoolItem classes to enable the user to customize the user interface.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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