Introducing ProgressBar : ProgressBar « SWT « Java Tutorial






Progress bars display incremental progress. ProgressBar Styles:

StyleDescription
SWT.SMOOTHCreates a progress bar that displays a continuous bar as its indicator. The default is to display a distinctly divided bar.
SWT.HORIZONTALCreates a horizontal progress bar.
SWT.VERTICALCreates a vertical progress bar.
SWT.INDETERMINATECreates a progress bar that constantly cycles, indicating continuous work.


17.36.ProgressBar
17.36.1.Introducing ProgressBar
17.36.2.Using Thread to update ProgressBar valueUsing Thread to update ProgressBar value
17.36.3.Using the SWT.INDETERMINATE style: the operation is happening but doesn't know when it'll finish.Using the SWT.INDETERMINATE style: the operation is happening but doesn't know when it'll finish.
17.36.4.Update a progress bar from the UI threadUpdate a progress bar from the UI thread
17.36.5.Update a progress bar from another threadUpdate a progress bar from another thread