@@ -0,0 +1,831 @@
+package pro.simpleproject.core.intra;%0A%0Aimport javafx.scene.control.SelectionMode;%0Aimport javafx.scene.control.TreeItem;%0Aimport javafx.scene.control.TreeView;%0Aimport javafx.scene.text.Text;%0A%0Apublic class IntraContactBuilder %7B%0A%0A%09private static TreeView%3CText%3E view;%0A%0A%09public static TreeView%3CText%3E get() %7B%0A%09%09if (view == null) %7B%0A%09%09%09view = new IntraContactBuilder().build();%0A%09%09%7D%0A%09%09return view;%0A%09%7D%0A%0A%09public TreeView%3CText%3E build() %7B%0A%09%09TreeView%3CText%3E tv = new TreeView%3CText%3E(getItem());%0A%09%09tv.setEditable(false);%0A%09%09tv.autosize();%0A%09%09tv.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);%0A%09%09tv.setShowRoot(false);%0A%09%09return tv;%0A%09%7D%0A%0A%09private TreeItem%3CText%3E getItem() %7B%0A%09%09TreeItem%3CText%3E item = new TreeItem%3CText%3E(new Text(%22192.168.1.1%22));%0A%09%09TreeItem%3CText%3E root = new TreeItem%3CText%3E();%0A%09%09root.getChildren().add(item);%0A%09%09return root;%0A%09%7D%0A%0A%7D%0A

Create IntraContactBuilder.java