Composite up = new Composite(shell, SWT.NONE); up.setBackgroundMode(SWT.INHERIT_FORCE); final Label lab = new Label(up, SWT.NONE); lab.setImage(“图片路径”); |
设置SWT包中的Label背景透明的方法
最新推荐文章于 2021-05-13 08:16:24 发布
Composite up = new Composite(shell, SWT.NONE); up.setBackgroundMode(SWT.INHERIT_FORCE); final Label lab = new Label(up, SWT.NONE); lab.setImage(“图片路径”); |