Results 1 to 2 of 2
  1. #1
    michalss is offline Member
    Join Date
    Mar 2011
    Posts
    17
    Rep Power
    0

    Default jTree load data from DB *PLS HELP*

    Hi all,

    I have a task i cannot resolve myself. I need to load a data from mysql to jTree component. Problem is there are constatnly changing data and it is all happenining dynamically. ly
    I have no problem to read data from mysql, only to load them into jTree.

    Here is what i'm trying to do:



    To make it look like this :



    I'm working with netbeans 7, so i anyone would be so kind and help me out. Then can my also many nodes uder the root and childs under the nodes. I have try to google it, but out there is not any clear example. PLease help
    Last edited by michalss; 04-14-2011 at 11:12 AM.

  2. #2
    michalss is offline Member
    Join Date
    Mar 2011
    Posts
    17
    Rep Power
    0

Similar Threads

  1. JTree - Save and load from an array?
    By grahamb314 in forum AWT / Swing
    Replies: 10
    Last Post: 04-14-2011, 10:52 AM
  2. Fill JTree with data
    By frednic in forum New To Java
    Replies: 3
    Last Post: 11-23-2010, 09:23 PM
  3. Load file to data structure
    By TinoJF in forum New To Java
    Replies: 4
    Last Post: 03-31-2009, 04:16 PM
  4. How to load a directory in JTree with Children(On expansion)
    By aneesahamedaa in forum AWT / Swing
    Replies: 0
    Last Post: 10-13-2008, 02:23 PM
  5. how to display data in Jtree
    By paty in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 01:28 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
  •