If you are using NetBeans, you may want to use the NetBeans' patch making capability.
Select what you want to patch [in the project/file system] and go to Team->Export Diff Patch...
[Message sent by forum member 'rimartin7' (rimartin7)]
http://forums.java.net/jive/thread.jspa?messageID=358512