-
Book Overview & Buying
-
Table Of Contents
OpenJDK Cookbook
By :
This section will show you how to create a patch of the OpenJDK project using NetBeans.
You will need a configured development environment. It is preferable that you use NetBeans since NetBeans is a standard tool for developing and debugging OpenJDK.
We will do a simple patch creation with Mercurial and NetBeans by following these steps:
Open the OpenJDK project with NetBeans.
Make some changes in the project code as shown:

Then, follow the chain of context menus, as shown in the preceding screenshot.
Click on the OK button.

Your patch will be saved to the specified directory. Later, you can apply patches using the Apply Diff Patch item in the Mercurial context menu.
NetBeans calls a program that exports a diff (your uncommitted changes versus the head revision in the repository) to a file that can be read and applied when needed.
Also, diffs between different divisions can also be exported. To do that, simply click...
Change the font size
Change margin width
Change background colour