在swt中获取jar包中的文件 uri is not hierarchical
生活随笔
收集整理的這篇文章主要介紹了
在swt中获取jar包中的文件 uri is not hierarchical
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
uri is not hierarchical
學(xué)習(xí)了:http://blog.csdn.net/zdsdiablo/article/details/1519719
在swt中獲取jar包中的文件:
Image backgroundImage = null;try {backgroundImage = new Image(Display.getCurrent(), this.getClass().getResourceAsStream("login.jpg"));} catch (Exception e) {e.printStackTrace();System.out.println("Error: Background drawing failed !");//背景圖加載失敗!}?
轉(zhuǎn)載于:https://www.cnblogs.com/stono/p/7645237.html
總結(jié)
以上是生活随笔為你收集整理的在swt中获取jar包中的文件 uri is not hierarchical的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 论文笔记——PRUNING FILTER
- 下一篇: SpringBoot应用的集成测试