Including images in javadocs

后端 未结 7 1931
北海茫月
北海茫月 2020-12-14 16:26

I work with a lot of sample test cases that are visual. Is there any convenient way to include them in my Java source and link them in Javadocs, so my IDE can automatically

相关标签:
7条回答
  • 2020-12-14 17:09

    I stumbled upon this question as I as well wanted to show a preview of my icons. After reading the answers, I was not yet satisfied and tried it for myself. That's what I now got:

         /**
         * <img src="../../../../../../resources/com/my/project/client/images/myImage.png"><br>
         * Icon for myImage.
         *
         * @return the icon
         */
    

    like this I don't need to manage more images than before by simply going to the folder the actual images lie in.

    0 讨论(0)
提交回复
热议问题