Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

MOre JTree hassle!

  • 02-03-2004 08:54PM
    #1
    Posts: 431 ✭✭


    Hey all,

    Sorry for all the questions, but I'm going mad, trying to manipulate these JTrees!

    I have it displaying the system's directory structure, however, I want it to display contents of a drive. When I select the drive, say C:, I want the tree to be reloaded with the contents of the C: drive and display them!

    I've been messing around with the TreeModel, as this holds the data to be viewed...but the damn tree won't either reload, repaint, or change in any way.

    If anyone has any pointers for a solution for this, i could really use the help!

    cheers


Advertisement