public TreePanel(TablePanel parentPanel){
		this.parentPanel = parentPanel;
		root = new DefaultMutableTreeNode("root");
		loadTree();
		jtree = new JTree(new DefaultTreeModel(root));
		jtree.setRowHeight(40);
		jtree.setRootVisible(false);
		jtree.setShowsRootHandles(true);
		jtree.setFont(font);
		
		DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer)jtree.getCellRenderer();
		
		renderer.setLeafIcon(new ImageIcon(
				getClass().getResource("/UI/image/phoneBook.png")));
		
		renderer.setBackgroundSelectionColor(Color.yellow);
		
		this.setLayout(new GridLayout(1,1));
		this.add(new JScrollPane(jtree));
		
		createPopupMenu();

		MouseListener ml = new MouseAdapter() {
			@SuppressWarnings("static-access")
			public void mousePressed(MouseEvent e) {
				int selRow = jtree.getRowForLocation(e.getX(), e.getY());
				selPath = jtree.getPathForLocation(e.getX(), e.getY());
				if(selRow != -1) {
				    if(e.getClickCount() == 1) {
				        
				    }
				    else if(e.getClickCount() == 2) {

				    }
				    if(e.getButton() == e.BUTTON3) {
				    	TreePath path = jtree.getSelectionPath();
				    	if(path != null && ((DefaultMutableTreeNode)path.getLastPathComponent()).isLeaf())
				    		isLeafOperate();
				    	else
				    		isNotLeafOperate();
				    	popup.show(e.getComponent(),e.getX(),e.getY());
				    }
				}
			}
		};
		
		jtree.addMouseListener(ml);

	}