Results 1 to 3 of 3
- 09-17-2010, 02:33 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 40
- Rep Power
- 0
Displaying specific folders in JTree
Hi!
I'm learning JTree component...and I cannot understand how to display folders located in some specific place on disc, e.g. D://JAVA:
D:
JAVA
MyFolder1
MyFolder1_SubFolder1
MyFolder1_SubFolder2
MyFolder2
MyFolder2_SubFolder1
Should I create some directory model? So, could you please explain me in a general way this problem solving?
- 09-17-2010, 03:44 PM #2
Member
- Join Date
- Aug 2010
- Posts
- 40
- Rep Power
- 0
For example, The following code: codefetch source example gui/FileTree.java jtree file allows displaying the content of the Java project. My question is how to update this code to displaying another folders, e.g. located in D:/JAVA? You may not post the code, but just provide please a general guideline.
- 09-17-2010, 04:06 PM #3
Member
- Join Date
- Aug 2010
- Posts
- 40
- Rep Power
- 0
I've found the solution. It is posted here: List all files/directories in a JTree - Java - Source Code | DreamInCode.net
Similar Threads
-
Adding folders to a Jar
By IamKira in forum NetBeansReplies: 5Last Post: 01-22-2010, 06:03 PM -
java isDirectory() is not detecting that my folders are folders!
By seandingobat in forum New To JavaReplies: 4Last Post: 10-10-2009, 12:26 AM -
Move JTree item to another JTree.
By Melki in forum AWT / SwingReplies: 8Last Post: 07-09-2009, 11:59 AM -
Displaying (scrolling To) A Specific Record In A Continuous Form
By REVANSIDDHA in forum Advanced JavaReplies: 1Last Post: 04-03-2009, 07:17 AM -
how do i print a specific txt file on a specific printer
By nikhilbhat in forum New To JavaReplies: 2Last Post: 11-08-2008, 10:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks