用
this.getframe().setIconImage(new imageIcon(getClass().getClassLoader().getResource("PlagiaLyzerIcon.png")));代替。
注意:
仅当图像位于jar文件的根目录中时,此行才有效。如果不是,则必须在字符串上指定文件夹:
getResource("yourfolder/PlagiaLyzerIcon.png")
用
this.getframe().setIconImage(new imageIcon(getClass().getClassLoader().getResource("PlagiaLyzerIcon.png")));代替。
注意:
仅当图像位于jar文件的根目录中时,此行才有效。如果不是,则必须在字符串上指定文件夹:
getResource("yourfolder/PlagiaLyzerIcon.png")