This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes JTree Node Information Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "JTree Node Information" Watch "JTree Node Information" New topic
Author

JTree Node Information

Adam Pengelly
Greenhorn

Joined: Apr 16, 2004
Posts: 2
Hi there,
I'm running through a ResultSet and creating nodes on a tree as I go, I need to be able to print the node number after the 'title':
while(tmpRS.next()) {
nodes[0].add(new DefaultMutableTreeNode(tmpRS.getString("Client_Name")));
}
I need something like "tmpRS.getString("thing") + getNodeId()
I know this is nothing like it, but it's the best psudo code I can do.
Thanks in advance for your help
Adam Pengelly
Greenhorn

Joined: Apr 16, 2004
Posts: 2
OK, my bad.
I'm fairly (bloody) new to this Java thing.
I've figured it out. What a fool I am.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JTree Node Information
 
Similar Threads
Linked List Help
vector methods and character input
JTree Node Collapsing
Regex for adding CDATA to XML nodes
Parsing a TreeModel structure