Activity stream
-
Patrice Secheresse posted the new code snippet Using JTree 2 years ago · View
There is only one way to use correctly a JTree but many ways to do it incorrectly. The basic mistake for a very beginner is to add a node with the ‘add()’ method. WRONG! First use DefaultMutableTreeNode and DefaultMutableTreeModel, don;t use an interface or superclass, you will loose to much time. Second, add a node [...]