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?
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
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.
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.
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