Graph-style JTree component desperately needed

Hi,

I'm a developer currently working with a JTree using an XML-based tree model to represent an outline view. Our client needs both this outline view, as well as a graphical box-and-line style tree that corresponds to what the JTree is displaying. They would like to be able to move nodes, add and remove connections, and generally modify the tree graphically while updating the results in the outline view.

We have tried implementing this ourselves, but the process is tedious and bug-prone. Does anyone know of a component or set of components available that could mimic the functionality our client's looking for, and do it with Swing's TreeModel representation (or if not that, can read XML)? We have very little time to develop it, and so have avoided non-specific packages such as JGraph until now -- we may have to go that route after all. ANY help you can lend would be most appreciated! Thanks in advance,

G. Dugwyler

[955 byte] By [gduga] at [2007-9-27 5:08:51]
# 1

It sounds like what you want is a JTree with some functionality and a different L&F. That shouldn't be too hard.

1. For the graph tree problem, you want stick - lines right? Well, I would implement my own swing flavor here and do it that way. Then you've got all the advantages already built into JTree and you just change its face

2. As far as adding code for drag 'n drop, insertions, etc. There's good example code on this site. Go to JTree's JavaDoc and click on the url for the JTree tutorial

tjacobs01a at 2007-7-8 1:24:19 > top of Java-index,Archived Forums,Swing...