• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

java swing help

temo

Junior Member
Hello,

I am planning on developing an application that needs to display trees...similar to
treeview (http://darwin.zoology.gla.ac.u...treeviewx/screen.html)

I was thinking of using the built in JTree to create a trees but was wondering if there was any way to customize the tree besides how it looks. Can I make it expand and collapse upward/two way similar to how the phylogenetic trees do?

I was thinking of having a way to collapse the children at which point the parent will display the subfamily name etc...but when I exapnd the parent the children will appear the parent will disappear (i can probably do this part by removing the name, if there was a way to expand two way instead of the current way of JTree expanding downward only...
When I mean downward I mean (http://java.sun.com/docs/books.../components/tree.html)
Root
>child
>child

I was thinking if it was possible to do
>child
Root
>child

or
>child
Root

or
> child
Root ...becomes (blank) (name disappears)
> child
If this isn't possible to do with JTree can anyone suggest possible libraries that can?
Does SWT have this ability? Otherwise any idea on how much work it would be to implement this from scratch?

Thanks!
 
Back
Top