DefaultMutableTreeNode temp = null;  
       String strsql = "select ID,Name,ParentID from t_owner where ParentID ='" + ParentID + "'";    
        try  
        {  
         ResultSet rs=DB.executeQuery(strsql);
            while (rs.next())  
           {    
                temp = new DefaultMutableTreeNode(rs.getString("Name"));  
                System.out.print(temp);
                parent.add(temp); 
                createNodes(temp, rs.getInt("ID"));
               
            }         
        }      
        catch (Exception e)  
        {  
            System.out.println(e);  
       }