Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable query  RSS feed

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

I want to create a JTable of size 2000 * 2000, if the size is less(something like 5*5) I can take a String array to store the column names and Object array to store the data, but how do I go about creating huge tables as it would be inefficient to store all the 2000 rows in Object array seperating each data value with a comma

Object o[]={1,2,3,...2000} //Inefficient I guess

please suggest me an efficient way to store data in JTables.
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what TableModel do.
You can go How to Use Tables for more infomation.

Good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!