Get image from relative path

前端 未结 8 1901
囚心锁ツ
囚心锁ツ 2021-02-03 13:01

In my project I have 2 packages. images - contain images and notification - contain java files

In notification/main.java I get Image o

8条回答
  •  [愿得一人]
    2021-02-03 13:21

    SwingResourceManager.getImage(YourClass.class,"key-16x16.png");
    

    The getIcon method will return Icon as similar

提交回复
热议问题