How to catch mouse clicks on a geometry in the guiNode?

Then the ray you are using is wrong. We can’t see it, though, so it’s hard to say why.

Something like Lemur also provides picking ‘out of the box’ for any scene graph element, whether in the 3D scene or in the guiNode. (It even supports any custom viewports you might want or whatever.)

A tutorial here on how to use Lemur for scene picking:

It’s in the 3D scene but that works with the guiNode also. (It’s what the normal Lemur GUI elements use internally already.)

Here is the main page for Lemur in case it piques your interest:
http://jmonkeyengine-contributions.github.io/Lemur/

…else post your code so we can spot what’s wrong.