Composite up = new Composite(shell, SWT.NONE);
up.setBackgroundMode(SWT.INHERIT_FORCE);
final Label lab = new Label(up, SWT.NONE);
lab.setImage(“图片路径”);
或者
shell.setBackgroundMode(SWT.INHERIT_FORCE);
设置SWT中的Label背景透明的方法
最新推荐文章于 2021-02-16 09:35:49 发布