• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help. I need a Tree

 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm writing a general purpose HTML/javascript "tree" component, and I really need a data model to put behind it. The nearest thing I can find is javax.swing.TreeModel, which seems to be mostly what I want, but I don't use swing (or AWT) anywhere else in my application, and I'm loath to start importing it now.
Why is there no java.util.Tree interface like there is for Map, Set and List? Am I missing something, or is there a gaping hole in the standard APIs? How does everyone else deal with this?
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What about
java.util.TreeSet, and
java.util.TreeMap?
Manfred.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Frank:
while searching for applet limitations, I stumbled on
this FAQ, which IMHO, is related to what you want.
You might want to take a peak at what they are talking...
esp.

hth.
regds.
- satya
 
reply
    Bookmark Topic Watch Topic
  • New Topic