How do I use the old javadoc style / theme with JDK 7?

笑着哭i 提交于 2019-12-04 09:59:56

问题


The new theme in JDK 7 for javadoc is hard for me to read. It may not be pretty but I really would prefer the old theme. Aside from installing the old JDK and switching between them, can I somehow use the old doclet?


回答1:


Have to admit I haven't experienced this yet, but I've found that you can customize the CSS for the java doc. Here is the description.

You might be interested in running this:

C:> javadoc -stylesheetfile C:\user\exampleStylesheet.css com.examplePackage

Its also stated there that it creates 'stylesheet.css' file so you should see how it looks like and what can be overridden there.

Hope this helps




回答2:


I know this is a late answer, but someone has developed a stylesheet that can be used to get the old pre-7 rendering:

http://junk-box.appspot.com/stylesheet/classic-javadoc-stylesheet/index.html

I too do not like the newer post-6 style, it is less readable and harder to scan. I prefer readability over visual aesthetic.




回答3:


If it bothers you that much and you don't want to mess around with stylesheets and templates, you can always install JDK 1.6 in another directory and use its Javadoc util instead.




回答4:


I can't say I've tried with Java 7, but yDoc is a neat customizable doclet. Besides adding class diagrams (maybe they can be filtered out), I think it's still possible to generate the javadoc with the original style.

There is a free version available (I'm not related to yWorks, I just happened to write taglets and used yDoc).



来源:https://stackoverflow.com/questions/11839580/how-do-i-use-the-old-javadoc-style-theme-with-jdk-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!