• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtreetable - focus losting while reloading

 
prasanna kalluri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I am working with jtreetable - http://java.sun.com/products/jfc/tsc/articles/treetable1/, i struggle a lot to set the focus while add, edit or delete a object to the jtree. I am reloading the model once any above action takes place.

Before reloading i get all the expanded nodes and selected path, then i set all the things.

Expanding of nodes is working fine but the selection is lost(single node selection)

Please suggest on this



Thanks in advance
Filename: JTreeTable1.bmp
Description:
File size: 96 Kbytes
[Download JTreeTable1.bmp] Download Attachment
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Not sure if you have gone through the 'Caveats' section mentioned in the bottom part of the article. That may give you hints.
Also, you should go through part 2 of the same example which fixes many issues found in the part 1.
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!