|
I am using java/swing. Inside a JLayeredPane I have put various objects at various layers. As a result mouseclick events are caught only by the actionlisteners of the top level objects. I want to further "forward" these events to the underlying layer objects.
So the top-level objects handle the event first, and then "somehow" the event is forwarded to the next underlying level. If there is an object located at the underlying level at this position (and there is an actionlistener settled) the event is caught by this actionlistener and so on. I want all the process to be totally "transparent" for the objects at each layer, meaning that the object at each layer will not be able to distinguish if the event is fired from the user or being forwarded by an upper level.
Any ideas?
|