java SWT transparent composite background

谁说我不能喝 提交于 2019-12-07 17:45:43

问题


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...


回答1:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!