Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable-putting data in columns and rows

 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
i am storing livedata in a file.from that i have to fetch approriate data for a particular rows and columns.i have to display on table in a periodic interval.
plz anyone can helpme in this .thanx in advance.plz give me if u
have code also.
thanx
regards
siva
 
Vidyadhar Hegde
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Siva,
What type of the file are you using?
If it is from database file I do have the answer.
 
Selva P
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
you can use DefaultTableModel for this purpose. Override methods like getColumnCount(), getRowCount(), getValueAt(). you should implement this metods with code necessary for retreving from the file and returning some values as per the method definition..
Hope this would serve your purpose.
bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic