The Robot class can create a BufferedImage screenshot. The BufferedImage can give you the pixel value of a particular coordinate. The API is your friend: Java Platform SE 6

I think what you're...