I just googled a bit for this and to me it seems like you'd need to bundle your Java application like a native OS X application and include a plist file that defines the icon to use. Thisthread also seemed potentially useful.
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .