JTree
I created JTree component and i added TreeSelectionListener TreeExpansion Listener to the tree. I am caliculating the node coordinates whenever the tree expands or tree Collapses in the functions treeExpanded() and treeCollapsed. But in the functions they r returning previous tree coordinates whenever the event generates i.e., it is not showing the current state of the tree coordinates.
If there is any solution send urgently
[434 byte] By [
rajasuresh] at [2007-11-15 20:13:49]

# 1 Re: JTree
void m_jTreeMainFolder_treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException
{
TreePath selPath=e.getPath();
if(selPath==null)
return;
DefaultMutableTreeNode selNode=(DefaultMutableTreeNode)selPath.getLastPathComponent();
FolderNodeObject nodeObject=(FolderNodeObject)selNode.getUserObject();
if(nodeObject.m_nNodeType==FolderNodeObject.TYPE_COMPANNY
&&!nodeObject.m_blExpandChildRen
)
{
m_oo.startLoadFolder(selNode);
}
}
701017
adx at 2007-11-10 2:53:30 >

# 2 Re: JTree
Thanks for giving message
I didn't understand about ur function. When to use this function and where to use these function. please send briefly as early as possaible .
thanku
at 2007-11-10 2:54:30 >
