Dennis wrote:

>Hi Kurt,
>
>My main problem is to draw a line from source node to
>target node. 
>To draw a line I need start and end coordinates of the
>source and target nodes respectively. How do I get the
>coordinates of each node????
>

In JTree there are some methods to convert
from rows/paths to graphical positions:

Rectangle getRowBounds(int row)
Rectangle getPathBounds(TreePath path)
int getRowForLocation(int x,  int y)

-- 
Christian Pesch - Product Maturity Manager
CoreMedia AG - http://www.coremedia.com - 0700-COREMEDIA



_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to