I needed to use a TreeTable for the program I was writing and it struck me
how very little information there is about this subject. Ok, there are a few
examples on SUN's website, but they are needlessly complex. So I decided to
make a generic implementation along with a couple of examples. I also
improved upon the original JTreeTable by making it sortable and by adding a
few functions which help with opening/closing nodes. It's not in an
extensive tutorial form, but I hope the examples are easy enough to
understand for everyone to start playing with it.
you can take a look here:
http://cal007300.student.utwente.nl/treetables/
The examples are as below:
- An example of a simple (sortable) JTreeTable
- An example which shows how to update/sort the treetable when you add
nodes every second.
- An example which shows how to update the nodes in a table (in this case
integers which are represented by a JScrollBar) and which shows how to make
the 'parent' nodes represent the average of their child nodes.
- An example (not really treetable though) which shows how to have working
hyperlinks in a JTable.
- An example which shows how to have working hyperlinks in a sortable
TreeTable.
Also check out the media section :) (totally oftopic, but nice nonetheless)
If you like it, I would ask of you to create one small example to show
something of which there is no example yet, so I can add it to the examples.
Also, for bug reports (and fixes!), new features, improvements, corrections,
hate and fan mail you can contact me at vincentv@thevoid.demon.nl
Regards,
- Vincent Vollers
Andrew Thompson - 20 Dec 2003 04:31 GMT
Hi Vincent!
...
> you can take a look here:
> http://cal007300.student.utwente.nl/treetables/
>
> The examples are as below:
Have you considered providing examples of
the TreeTables straight off the net? I mean
the abilitiy to launch a Frame containing
the Tree?
It is quite easy, I have an exapmle at my site.
http://www.physci.org/codes/display.jsp?fl=/test/Launcher/Launcher.java
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Vincent Vollers - 22 Dec 2003 14:21 GMT
> Hi Vincent!
> ...
[quoted text clipped - 16 lines]
> * http://www.1point1C.org/ 1.1C - Superluminal!
> * http://www.AThompson.info/andrew/ personal site
Hi Andrew,
That is a good idea! I will do something like that, except that I will go
with Java Web Start I think. You can argue that having a 'launcher' applet
will work on older browsers and older JVM's but this will give me a chance
to play around with Web Start a bit. And I think everyone should install the
java plug-in anyway :)
Regards,
- Vincent
Andrew Thompson - 23 Dec 2003 01:25 GMT
....
> > > you can take a look here:
> > > http://cal007300.student.utwente.nl/treetables/
...
> > Have you considered providing examples of
> > the TreeTables straight off the net?
...
> > http://www.physci.org/codes/display.jsp?fl=/test/Launcher/Launcher.java
...
> That is a good idea! I will do something like that, except that I will go
> with Java Web Start I think. You can argue that having a 'launcher' applet
> will work on older browsers and older JVM's but this will give me a chance
> to play around with Web Start a bit. And I think everyone should install the
> java plug-in anyway :)
Huh! (chuckles) It's almost as if you'd
been reading something like this..
http://www.physci.org/test/java/PlugIn.html
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site