if (node instanceof TreeNode) return ((TreeNode) node).isLeaf(); else return true;
return tree.getModel().isLeaf(node);
	protected boolean isLeaf(int row)	{      TreePath pathForRow = getPathForRow(tree, row);      if (pathForRow == null)         return true;      Object node = pathForRow.getLastPathComponent();      if (node instanceof TreeNode)         return ((TreeNode) node).isLeaf();      else         return true;	}