Repository of Java 8 source code examples for learning
How to download OpenJDK 8 source code from java.net - Stack Overflow
Where to get java JDK source code
java 8 - Where can I find the JDK 8/JavaFX 8 source code? - Stack Overflow
I am not new to Java when it comes to programming but I am very interested lately to see implementation wise how some of the constructs I use everyday are implemented. But besides from what I learnt googling online, I was wondering if you can actually download the source code for the JDK and view them.
Quoting from this answer: For Java 8, the source of the public parts of JavaFX are actually laying right along in the JDK installation as a sibling of src.zip: javafx-src.zip - on the root of your normal JDK Java 8 installation.
Eclipse doesn't by default link them up when you add the JRE (or it finds it itself) - obviously a bug - so you'll have to do that yourself, by hitting Preferences -> Installed JREs. Find your JDK 8, hit Edit button. On the list JRE system libraries, expand the jfxrt.jar node, and link in the javafx-src.zip file.
The source for JavaFX 8 is available at:
http://hg.openjdk.java.net/openjfx/8/master/rt
JavaFX 8 is almost completely open source today.
Instructions for building JavaFX 8 with OpenJDK 8