If you have a BufferedImage object (maybe obtained through javax.imageio.ImageIO.read) then you can call its getRGB method to obtain the RGB (or RGBA) values of a specific pixel.
As an aside, a very powerful image processing library (and application) is ImageJ. [ January 06, 2008: Message edited by: Ulf Dittmer ]