Switch person class usage of Origin class to Country class and use it for distance...
[Persons_Comparator.git] / src / RegionView.java
index 17a294908f6933a8915d19a5da672a923c9a2c51..42941ac2d6f27247f749a309994f98fdd3854172 100644 (file)
@@ -72,13 +72,17 @@ public class RegionView extends JPanel {
                     }
                 }
                 if (node.getChildCount() > 0) {
-                    node = sortTree(node);
+                    sortTree(node);
                 }
             }
             return root;
         }
     }
 
+    public JTree getTree() {
+        return tree;
+    }
+
     public void setRegionObj(Region regionObj) {
         this.regionObj = regionObj;
     }