Бонсай - это искусство выращивания миниатюрных деревьев. Мастера бонсай могут создать на плошке образ мощного тысячелетнего дерева, сформировать пейзаж густо заросшей чащобы, гор и ущелий, морского берега, получая на маленьком кусочке земли копию изящества великой природы.
Конечно же, перед тем, как начать формировать карликовое дерево, тщательно отбирается подходящий экземпляр, как правило, используются виды и сорта деревьев с уже имеющимися задатками миниатюрности, например, DefaultTreeModel, custom TreeModel implementation for use in javax.swing.JTree
With the JTree class, you can display hierarchical data. A JTree object does not actually contain your data; it simply provides a view of the data. Like any non-trivial Swing component, the tree gets data by querying its data model.
As the preceding figure shows, JTree displays its data vertically. Each row displayed by the tree contains exactly one item of data, which is called a node. Every tree has a root node from which all nodes descend. By default, the tree displays the root node, but you can decree otherwise. A node can either have children or not. We refer to nodes that can have children — whether or not they currently have children — as branch nodes. Nodes that can not have children are leaf nodes.