/*
 * Created on 2004-12-4
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package test.tree;

import javax.swing.JTree;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class MyTree extends JTree
{
	public MyTree()
	{
		MyTreeModel model=new MyTreeModel();
		model.addTreeModelListener(new MyTreeModelListener(this));
		this.setModel(model);
	}
	
	public MyTreeModel getMyModel()
	{
		return (MyTreeModel)this.getModel();
	}
}
