Swing: Bäume

// Model:
MutableTreeNode root = Shape.binary(4);
DefaultTreeModel tm = new DefaultTreeModel (root);

// View + Controller:
JTree t = new JTree (root);

// Steuerung:
t.addTreeSelectionListener(new TreeSelectionListener () {
   public void valueChanged(TreeSelectionEvent e) { .. } }

// Änderungen des Modells:
tm.addTreeModelListener(..)



Johannes Waldmann 2007-06-13