• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jtreetable - focus losting while reloading

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
File size: 99 Kbytes
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic