java SWT透明复合背景 [英] java SWT transparent composite background

查看:245
本文介绍了java SWT透明复合背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有复合对象

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

推荐答案

无法使用透明背景创建 Composite 。您可以使用 Shell 具有透明背景(请参阅示例),并将小部件放入其中。

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.

这篇关于java SWT透明复合背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆