Chapter 5. More widgets

 

Now that you know how to tie together widgets with events and listeners, we’ll continue our tour of JFace/SWT widgets. The controls we discuss in this chapter will round out your toolbox of widgets and give you an understanding of the majority of controls you’ll be using in a GUI application.

We’ll explore two (mostly) separate approaches to text editing in this chapter. First we’ll discuss in some detail the text widgets built into SWT. We’ll follow this discussion with an overview of the enhanced text support available in JFace. Although the JFace text packages offer more advanced options, they’re also much more complicated to use.

Once we’ve covered the details of text editing, we’ll move on to a demonstration of several commonly used widgets. We’ll cover combo boxes, toolbars, sliders, and progress indicators, as well as discussing the coolbar, which allows you to group several toolbars and let users rearrange them in whatever configuration they find most convenient.

5.1. Editing text with SWT

5.2. JFace text support

5.3. The Combo widget

5.4. ToolBarManager

5.5. CoolBar

5.6. Slider

5.7. ProgressBar

5.8. ProgressIndicator

5.9. Summary

sitemap