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

CPU usage of JTable

 
Sarone Thach
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey I hope I'm in the right forum.
I'm currently having problems with painting a JTable, every time the JTable UI has to be repainted, because of updates, it uses a lot of CPU time.
How do I reduce/prevent this? I really need to update the UI every second as part of my application requirement. The table would have an average of 50 rows, and each row has about 8 columns.
CPU usage is around 30%.
please any suggestions is welcome.
thanks.
Sarone
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a good article entitled "Christmas Tree Applications:
How to Create Frequently-Updated JTables that Perform Well". It should help you out a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic