Java API Javadoc

If you have access to the Java API Javadoc pages, DrJava allows you to quickly open a Javadoc page for a class: With the "Open Java API Javadoc" item in the Tools menu (bound to Shift+F6), you can open a predictive input dialog populated with all Java API classes. After you have selected a class, DrJava will try to open the corresponding Javadoc page in a browser.

The "Open Java API Javadoc for Word Under Cursor" feature, also in the Tools menu and bound to Ctrl+Shift+F6, looks at the word the cursor is on and uses it as a starting point for the search. If there is a unique match, then DrJava will open the Javadoc page immediately; otherwise this feature works just like "Open Java API Javadoc".

Note that this feature requires access to the Java API Javadoc pages, e.g. on the internet. DrJava will use the version and location set for "Java Version for 'Open Java API Javadoc'" in the "Javadoc" pane of the "Preferences" dialog (see Configuring DrJava) and access that location the first time this feature is used during a DrJava session. You can use Java API Javadoc pages on your local system by entering a URL beginning with file:// followed by the directory the allclasses-frame.html file is in. You may also have to set the right values for the "Web Browser" and "Web Browser Command" settings in the "Resource Locations" portion of the "Preferences" dialog.

You can also open the Javadoc pages for JUnit 3.8.2 by entering a URL in the "JUnit 3.8.2 URL" field of the "Javadoc" pane of the "Preferences" dialog. You can open the Javadoc for user-defined libraries by entering the URLs in the "Additional Javadoc URLs" list. Please enter the URL to the directorythat contains the allclasses-frame.html file. For example, to open DrJava's Javadoc, enter