• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

JSON data which is coming from url need to populate JTable  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am able to fetching the jsondata from URL. like [{"id":"55","Team":"Web"},{"id":"56","Team":"WebSource"}]
but I need to populating all jsondata into Jtable using Java Swing . but It is driving me mad.  any help would be appreciated.

Thanks,
Azam
 
Rancher
Posts: 319
6
Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to create a viewobject, asign the data to it's variables and use the viewobject to populate your table
 
Marshal
Posts: 60784
190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
Sheriff
Posts: 23714
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Md Azam Pasha wrote:but I need to populating all jsondata into Jtable using Java Swing . but It is driving me mad.  any help would be appreciated.



You need to create a TableModel object and put your data into that. Then create a JTable based on that TableModel. If you haven't already seen it, you might benefit from going through the tutorial: How to Use Tables.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!