How to give an dynamicly loaded TreeViewItem an EventHandler?
问题 at the moment i programm a database based Chat System. The friendlist of every User gets loadet in a TreeView after the login. means: After the login I request the names of the useres friends by the following Funktion, String namesSt[] = get.getUserFriendNameByUserID(currentUserID); To use the given Names to load them as TreeItem into my Friendlist / TreeRootItem "rootItem" for (int counter = 0; counter < namesSt.length; counter++) { System.out.println(namesSt[counter]); TreeItem<String> item