Hello Jan,
I am not sure why you are adding text2 to a composite node in your
example. If you add text2 as a child of text1 it receives events
fine.
mousePressed on org.piccolo2d.nodes.PText@63ce0072
mousePressed on org.piccolo2d.nodes.PText@321e4dd0
Then from the javadoc for PComposite:
PComposite is a simple node that makes a group of nodes appear to be a
single node when picking and interacting.
This means that PComposite does not forward events on to its child
node(s). If you add your input event listener to the composite node,
it will receive the events when you click on text2, e.g.
mousePressed on org.piccolo2d.nodes.PText@41096cd9
mousePressed on org.piccolo2d.extras.nodes.PComposite@1840b778
Does this help?
michael