Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

find the location of tree node  RSS feed

 
Manoj kumar A
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,
I have a JTree in a ScrollPane which displays strings.
I have crated Custom cellRenderer.
So whenever Tree is scrolled iam storing the row numbers currently displayed in a array using the custom renderer.
When i used this row numbers to select some nome nodes that is displaying currently,
the selction not happenes in the view region of scroll pane.but somewhere
Any solution?
If further clarification for the problem needed please tell.
Mano
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mano clt,
Please change your displayed name to follow the JavaRanch naming policy. You can do this here.
Thanks.
BTW, posting your code or snippets from the important parts will probably help people to help you with your problem.
[ April 10, 2004: Message edited by: John Wetherbie ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!