JavaFX 2.2 is only partially open source.
You can download the parts which are open from the zip link at:
http://hg.openjdk.java.net/openjfx/2.2/master/rt
JavaFX 8
JavaFX 8 is completely open source today.
Source for building JavaFX 8 (and the SceneBuilder design tool) is available at:
http://hg.openjdk.java.net/openjfx/8/master/rt
Source code for later versions (including Java 8 updates), is in the source code forest, an overview of which is at:
http://hg.openjdk.java.net/openjfx
- Instructions for building JavaFX 8 with OpenJDK 8
If you don't need to build JavaFX 8 and just want the runtime sources in a zip, those are in the javafx-src.zip
file from the JDK 8 download.
On OS X, the javafx-src.zip
file is located at:
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/javafx-src.zip
IDE Setup
Instructions for configuring Idea to understand the source are here:
JavaFX source code not showing
For NetBeans, you could try:
How to attach missing java JDK sources in Netbeans 7