Added hasPath method to find if JTree has a certain path