getResources() for ImageIcon - java

前端 未结 3 1657
故里飘歌
故里飘歌 2020-12-21 03:49

my very first question:

I\'ve been trying to figure this out for a couple of days, but I got to the point I lost my patience. The following are some code and my proj

3条回答
  •  隐瞒了意图╮
    2020-12-21 04:13

    If the png files have been packaged into the JAR in the same locations as they are in the original src directory then

    XXX("resources/icons/xyz.png");
    

    should produce the right result.

提交回复
热议问题