Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I clear the background of an SWT ExpandBar?

Tags:

java

swt

The default background of an ExpandBar in SWT appears to be a gradient of whichever color the operating system is using.

However, when I change the background of an ExpandBar in SWT, the controls switch to the Windows Classic style.

Is there a way to set the background of the ExpandBar without reverting to the Windows Classic look?

like image 980
juan2raid Avatar asked Nov 06 '22 14:11

juan2raid


2 Answers

Have you tried this one: Control.setBackgroundImage(Image)?

like image 58
Gabriel Ščerbák Avatar answered Nov 14 '22 21:11

Gabriel Ščerbák


I don't think this can be done without painting over the controls.

like image 31
juan2raid Avatar answered Nov 14 '22 21:11

juan2raid