// Create new layout.
java.awt.GridBagLayout aLayout = new java.awt.GridBagLayout ();
getContentPane().setLayout (aLayout);
// Accessible Tree.
javax.swing.tree.TreeModel treeModel = new DynamicAccessibilityModel();
maTree = new AccessibilityTree(treeModel);
// Add the model as tree listeners to be able to populate/clear the
// child lists on demand.
maTree.addTreeExpansionListener((TreeExpansionListener) treeModel);
maTree.addTreeWillExpandListener((TreeWillExpandListener) treeModel);