i have composite object
Composite composite = new Composite(shell, SWT.NONE);
composite.setBounds(new Rectangle(10,10,100,100);
How do i make this composite to have transparent background?
I will need to have widgets(non transparent) placed in this composite...
That not possible to create a Composite
with transparent background. You can use a Shell
with a transparent background (see example), and put widgets inside it.
来源:https://stackoverflow.com/questions/9542524/java-swt-transparent-composite-background