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-02-16 09:35:49 发布
Composite up = new Composite(shell, SWT.NONE); up.setBackgroundMode(SWT.INHERIT_FORCE); final Label lab = new Label(up, SWT.NONE); lab.setImage(“图片路径”); |