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背景透明的方法
最新推荐文章于 2023-05-16 10:32:49 发布