Pooja, All the MouseEvent gives you is the x and y location of the place where the event happened. To get the color of the pixel that this event happened on, you would have to have a component that keeps track of ( or can find ) the color of a certain x,y location on itself. None of the components provided with Java do this ( Well, I don't think any of them do... correct me if I am wrong... ), so you would probably have to write your own component to do this. HTH, -Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad: