Is any way to view the actual code behind the default classes in Java (java.awt.*;
, javax.swing.*;
, etc) to see exactly what it is that is
The Java source code for all the API classes is shipped in the JDK installer in a file named src.zip
. It's often just sitting in your install directory. Unzip it, and have a look.
If it's not there, you may have chosen not to install it; reinstall the JDK and watch for the "source code" option, making sure to include it.