views:

93

answers:

1
/**
 * <div class="en">Documentation in English</div>
 * <div class="nl">Documentatie in Nederlands</div>
 */
public void myFunction() {}

Subsequently edit the CSS of the JavaDocs so that the user can switch languages, e.g.:

div.en { display:none; }
div.nl { display:block; }

How to add javascripts in JavaDoc?

+2  A: 
  • You might be able to do it with the javadoc -header option.
  • You definitely can do it by subclassing the doclet and modifying its behavior. Start at the Sun Javadoc Technology page.
DigitalRoss