I have two Containers in a position and hide and show them when the spatials selected and deselected by a mouse R/L click.
I hide them by setCullHint method but its buttons receive mouse events.
how to prevent or fix it?
Remove them instead of hide them. There is no real advantage to leaving them in the scene graph.
Edit: note that the real issue is JME’s picking stuff that Lemur calls. There is no way to control what collideWith() will/won’t traverse.