aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Load my program with a Jtree expanded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Load my program with a Jtree expanded" Watch "Load my program with a Jtree expanded" New topic
Author

Load my program with a Jtree expanded

Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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

Joined: Jun 09, 2003
Posts: 4632
> 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

Joined: Oct 27, 2005
Posts: 19557
    
  16

Or check the API. There are methods in JTree to expand TreePaths and (hint, hint!) rows.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load my program with a Jtree expanded
 
Similar Threads
JTree - collapsePath issue
JTree
JTree
Truncation of text in JTree
JTree Auto Expand By Default