File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes CPU usage of JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "CPU usage of JTable" Watch "CPU usage of JTable" New topic

CPU usage of JTable

Sarone Thach
Ranch Hand

Joined: Jun 25, 2003
Posts: 89
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.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

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.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: CPU usage of JTable
It's not a secret anymore!