Swing: Bäume

// Model:
class Model implements TreeModel { .. }
TreeModel m = new Model ( .. );

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

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

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



Johannes Waldmann 2008-06-18