Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree Structure like window explorer.. with database driven  RSS feed

 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all !
Please will you guide me..?
I have database in SQL server .. returning data in Hashtable...
Now i want to display this in the form of window explorer type tree structure..(preferebly Applet)
There are five parent nodes each having many sub..sub..nodes(childerens). with gif icons..
Is there any site who explained this funda ?
Pl..
S. Oza
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorial covers using JTree pretty well.
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
HTH,
Joe
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnkx Joe,
I have gone through this tutorial.
I understand. But for running swing, browser require separate plug in ( i am not sure).
So is there any other tutoril to do using Nested Hashtable and Applet ?
Good Day.
S. Oza
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to code a tree display yourself with
only AWT classes, you probably can. You might find
something like that by searching gamelan and such
sites.
You could also probably buy ui classes from a vendor. I worked on a team that did exactly that
back in the JDK 1.02 days.
I do not know exactly how you would go about coding
such a display with only AWT.
If you have to display this output in a browser, and
you can not use Swing, why not write a program to
produce an HTML ui? Particularly if it is only a
static display of the structure (no editing, etc.).
HTML might work better than trying to code what
is likely to be a big applet.
HTH,
Joe
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Joe,
You are right. But the thing is that my client has already completed all coding up to returning data in hashtable.. And now he don't want to change his code slightly.. Otherwise XML is the best choice (I think).. He strictly want to display it in applet.
As per your suggestion i am now trying to buy some small java source and modify it according to my need.
Joe, In future if you find suitable solution pl. let me know...
Good Day.
S. Oza
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry I cannot remember exactly what we used. It
worked very well for us, including a tree component
that I used in part of my coding on that project.
Google has a category for this kind of thing
http://directory.google.com/Top/Computers/Programming/Languages/Java/Class_Libraries/Graphics/User_Interface_Classes/?tc=1
Yahoo probably has something similiar in its categories.
If I remember or can track down the product we used,
I'll post again.
HTH,
Joe
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Joe,
Let me first see link sent by you and search on yahoo.
If i got the solution i will post you the same.
Good Day, Joe
S. Oza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!