Is there a way to enable double buffering for SWT components?

In the Eclipse RCP application that I create, I noticed that when I rebuild parts of the GUI (by adding / removing controls), the GUI is updated and redrawn right after each modification, which causes a flicker effect.

Is there a way to enable double buffering so that the GUI updates only happen once at the end of the event dispatch cycle?

+3
source share
1 answer

Try:

Control#setRedraw(false);
...
modify
...
Control#setRedraw(true);
+5
source

Source: https://habr.com/ru/post/1706440/