Create an IndexColorModel image and set green to transparent.
example program

ICMTransparent.java.txt