• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TableSorter repaint problem

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I built an application, Which has a table with sorting support and dynamic addition and deletion of rows.. When the new rows are added in the sorted order, the repaint triggered in between sorting goes
on. The table shows unordered rows..
I am getting messages in the thread, which is used to update the table dynamically.
How to make the ordered set of rows in the table, while there are large number of messages are coming into the Table? How to block the repaint method smoothly without affecting the performance of the application..
please, guide me in this regard..
by,
stp
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I also have an application which performs sorting of the columns. It works fine even though i have 800 to 900 rows. Are you using Java1.4?
shirley
 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you using a custom renderer? if so, you should have a look at DefaultTableCellRenderer.java in jdk1.4. it overwrites several methods to improve performance.
chantal
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
ignore the previous empty reply..
thanks for immediate response..
i am using java 1.3..
I am using TableSorter --derived from --> TableMap -->AbstractTableMode and implements TableModelListener...
while dynamic addition of rows, the repaint process displays unordered list of rows in the table.
Pls, help me
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are using a custom model (TableMap isn't a class that comes with the JDK), you'll need to check and see if it's causing the problem.

Also, if you are using any custom renderers (like Chantel posted) you'll need to make sure they aren't causing the slowdown either.
 
reply
    Bookmark Topic Watch Topic
  • New Topic