• Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 299
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: 59438
187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
Sheriff
Posts: 23598
48
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.
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!