I have a classic JTree populated with some nods. Lets assume tree looks like this:
Root
|-Fruit
|--Apple
|--Orange
|-Objects
|--Table
|--Car
Is there any way in java to check if node exists using assumed path like this:
TreeNode found = model.getNodeOrNull("\\Fruit\\Apple")
so if node in given location exists it's returned, if not null is returned? Is there any such mechanism in Java?