KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > XTreeModel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import javax.swing.tree.DefaultTreeModel JavaDoc;
7
8 public class XTreeModel extends DefaultTreeModel JavaDoc {
9   public XTreeModel() {
10     this(new XRootNode());
11   }
12
13   public XTreeModel(XRootNode root) {
14     super(root);
15     ((XRootNode)getRoot()).setModel(this);
16   }
17 }
18
Popular Tags