+ Reply to Thread
Results 1 to 1 of 1

Thread: JXTreeTable

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    JXTreeTable

    I am trying to make a JXTreeTable in java, but I don't really know how to build the models.

    I have an ArrayList<Location> countries; list filled with Country objects. This list should be the root. In every Country object there is an ArrayList<Location> regions; list filled with City objects. This list should be chilren to countries and parent to the ArrayList<Location> cities; list in all Region onjects that is filled with City objects. Country and Region has a getList() method that returns the list in the object.

    I have tried making something out of DefaultTreeTableModel and DefaultMutableTreeTableNode, but all I've achived was an empty table...

    Any ideas?

    Edit: Nah nevermind managed to solve it :D
    Last edited by galaxyAbstractor; 01-30-2011 at 06:05 AM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers