Results 1 to 3 of 3
  1. #1
    LianaN is offline Member
    Join Date
    Aug 2010
    Posts
    40
    Rep Power
    0

    Default 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?

  2. #2
    LianaN is offline Member
    Join Date
    Aug 2010
    Posts
    40
    Rep Power
    0

    Default

    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.

  3. #3
    LianaN is offline Member
    Join Date
    Aug 2010
    Posts
    40
    Rep Power
    0

Similar Threads

  1. Adding folders to a Jar
    By IamKira in forum NetBeans
    Replies: 5
    Last Post: 01-22-2010, 06:03 PM
  2. Replies: 4
    Last Post: 10-10-2009, 12:26 AM
  3. Move JTree item to another JTree.
    By Melki in forum AWT / Swing
    Replies: 8
    Last Post: 07-09-2009, 11:59 AM
  4. Replies: 1
    Last Post: 04-03-2009, 07:17 AM
  5. Replies: 2
    Last Post: 11-08-2008, 10:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •