Is there is a way to get the color underneath an opaque JPanel
?
I have two JPanel
s, a red one and a blue one (they are animated). I want to get the color of a surface according to the JPanel
that passes over it.
In following images, the small borderd square is an opaque JPanel
, and I want to retrieve the color of the JPanel
beneath.