Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load my program with a Jtree expanded

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

When I load my program, my Jtree is Collapsed. What should i do in order to have the Jtree expanded on startup?


Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> What should i do in order to have the Jtree expanded on startup?

you start with google perhaps?
the keywords are not hard:
JTree expand

here's one of the sites with an example

http://www.rgagnon.com/javadetails/java-0210.html
 
Rob Spoor
Sheriff
Pie
Posts: 20526
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or check the API. There are methods in JTree to expand TreePaths and (hint, hint!) rows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic