update
update - import java.awt.image.PixelGrabber; and initPixelArray();