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

Chapter 16. SWT Slider and ProgressBar > Using the SWT ProgressBar Class

16.2. Using the SWT ProgressBar Class

Progress bars are a great way to provide the user with feedback during a long-running process. As a general rule, users don't like clicking a button to begin a process without some visual cue that the process has begun and is continuing. For short processes—those whose time to completion is measured in seconds—displaying an hourglass cursor is sufficient. However, for processes that are measured in tens of seconds, or minutes, a progress bar is required.

The SWT encapsulates all the functionality required to develop progress bars in a single class—ProgressBar. ProgressBar operates much like Slider, as can be demonstrated with a simple example, creating the window shown in Figure 16-3.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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