aspose file tools*
The moose likes Java in General and the fly likes Java Libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Libraries" Watch "Java Libraries" New topic
Author

Java Libraries

Sasha Barazandeh
Greenhorn

Joined: May 01, 2007
Posts: 3
Can anyone please tell me how/where I can download the java.awt.Color source code - the actual java code?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
You probably already have it. Look in the folder where you've installed your JDK - for example, C:\Program Files\Java\jdk1.6.0_11. One of the files should be called either src.zip or src.jar. Either way, you can copy this file to another directory, then unzip it, or unjar it using

java -xvf src.jar .

Once it's unzipped/unjarred - there are all the JDK library source files, right there. Well, not really all of them, because they exclude native methods and some packages like the com.sun.* stuff. But most classes of interest are there, including java.awt.Color. Enjoy.


"I'm not back." - Bill Harding, Twister
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38413
    
  23
. . . and welcome to the Ranch.
 
wood burning stoves
 
subject: Java Libraries