File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Libraries

 
Sasha Barazandeh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please tell me how/where I can download the java.awt.Color source code - the actual java code?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47228
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic