• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree Node Information

 
Adam Pengelly
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, my bad.
I'm fairly (bloody) new to this Java thing.
I've figured it out. What a fool I am.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!