Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refresh my table data dynamicly

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use SNMP(through UDP) to get data from agent. Then present it in a JTable. When I have a lot of devices it will be slowly. I need to wait about 30 seconds. It may need more when the amounts of device grow. Is there a method I can present row by row which I mean when fech a row from agent I refresh my table dynamicly.

Thnks in advance.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's stopping you from adding data to the table one-by-one, as you receive it from SNMP? The table should repaint itself as soon as you alter its contents.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic