By using the name you gave in the DEF, you can get the handle of particular node with the help of Browser object. |
// Get handle to the ROOT Node where there is a DEF ROOT in VRML file |
try |
{ root = browser.getNode("ROOT"); |
System.out.println("Got the ROOT node: " + root); |
} catch (InvalidNodeException e) |
{ System.out.println("PROBLEMS!: " + e);} |