• Post Reply Bookmark Topic Watch Topic
  • New Topic

jtree does not display unless mouse click

 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am confused why my jtree does not display the contents only until after i mouse click the jtree
i made my own method to expand a certain leaf node in the jtree and that is what happens.
no jtree is displayed until i click the jtree using the mouse

any ideas?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mark chester goking wrote:
no jtree is displayed until i click the jtree using the mouse


Now you have us confused! If it is not visible, how can you click it?
You mentioned some custom method to process node expansion. Does the problem go away if you do not use this method?
Post your sscce code so we can help you better.
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi maneesh, i think i got it fixed. i wanted to try something else but decided to use setSelectionPath() instead.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!