Hi i wanted to ask if there is some way to attach a node to GuiNode,when i try to do it same way i attach nodes to rootNode ,it works not,like node is not getting attached,and all the attempts to attach some thing to node fails couse no node is found
soo just give null pointer exeption

Yes you can attach a node to the GUI node.

If you get a NullPointerException, most environments will also produce a stack trace. If you want us to troubleshoot for you, please provide the stack trace.

On the other hand, perhaps this is an opportunity for you to familiarize yourself with a debugger.