We are using a the following class to show a progress-bar in our Java application: TextProgressBar
Unfortunately we are having some problems with flickering when using that (Win 7, Java 7). Do you have any tips on how we can avoid that? Can we somehow repaint it less frequently, use double-buffering or something else? Any tips are greatly appreciated!
try SWT.NO_BACKGROUND
first, and if not use SWT.DOUBLE_BUFFERED
.
Do not use both at the same time, because there is no point.
See the discussion
First, try passing SWT.DOUBLE_BUFFERED
in for the style parameter on construction. If that fails to improve the situation, move up the parent chain and add SWT.DOUBLE_BUFFERED
to their constructor call instead.
If you don't have control over the parent, then you'll likely need to wrap your control in another Composite that has this flag enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With