Working with the Open Sourced AWT & Java2D Sources
One of the open sourced JDK NetBeans projects
cover the Abstract Window Toolkit (AWT), which supports
graphical user interface programming, and Java 2D, which is a set of classes for advanced 2D graphics and imaging.
In this tutorial, we build the AWT & Java2d sources and explore
the other actions you can perform with these sources
by means of its NetBeans project.
When encountering problems of any kind,
please consult the Troubleshooting Guide.
Setting up
Download and install the OpenJDK sources, and then open the AWT & Java2d
project, as explained in Getting Started with OpenJDK in NetBeans IDE.
Once you have opened the project, the Projects window should look as follows:

Building the AWT & Java2D Sources
To build the AWT & Java2D sources, right-click the AWT & Java2D project in the
Projects window and choose Build Project. The IDE runs the Ant script for the project and shows
output in the Output window.
To view the build results, go to the Favorites window (Ctrl-3)
and browse to the "j2se" folder. Once you have added the folder,
you can see the newly created "build" and "dist" folders,
the latter containing your build output.