Select a component over a transparent point of other one
Posted on 2006-05-07
I have a custom JCompnent that draw a image whit transparency. When two componenents are overlaped I want to be able to click over the transparent area of the front component and get the back component ( assume thar the point is the same in the container, and the back component point has a not transparent pixel at that point). I'm able to pick the color of a point and recognize that is a system color when that point is transparent, but its not secure assume that the back component will not have a pixel from that same system color.
I will appreciate any sugestion.