How do I see the javadoc for Sun-supplied classes?
If you hover (don’t click) your mouse over the name of a method, you should see a simplified Javadoc explanation. If this doesn’t work for Sun-supplied methods, then you don’t have the source code installed. Here’s how to install the source code: • Go to http://java.sun.com/j2se/1.5.0/download.jsp and choose to download the JDK 5.0 Source Code (SCSL and JRL are just licenses; probably SCSL is best). • For JDK 5.0, select Download(SCSL source) . • Register. This is relatively painless, especially if you either ignore or enjoy reading license agreements. • Download JDK (SCSL) 5.0 (1.5.0). This will give you a file jdk-1_5_0-src.scsl.zip. Do not unzip this file; Eclipse likes it the way it is. • In Eclipse, go to Projects -> Properties -> Java Build Path -> Libraries and expand JRE System Library [jre 1.5.0], then expand rt.jar. Select Source attachment and click Edit…. • Navigate to the above zip file and select it. • Finish by exiting the dialog boxes.