Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTree node as a hyperlink in applet

Status
Not open for further replies.

anchal

Programmer
Sep 4, 2001
11
US
Hi,

I'm building a tree in applet using JTree. I want each node of the tree to be a link such that when the user clicks a node, the request goes to a servlet. Also, each node sends a unique key-value pair to the servlet so that the servlet knows which node was clicked. This means that each node has it's own unique url.
The response from the servlet is a page displayed in a different frame on the same window.
Can somebody suggest a solution to this problem?

Thanks in advance,
Anchal.
 
I'm not sure why you have a problem, are you adding a addTreeSelectionListener ? If so you now know which tree node you have selected and then can act accordingly.
 
Thanks. I too figured it out sometime back. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top