Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Performance

 
Udayan Naik
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Applet in which i use JTables and create my own table models extending AbstractTableModel and overriding the appropriate methods.I observed that the methods getValueAt() and setValueAt() are called several times for each entry in the JTable.What is the reason for that? Will this not degrade the performance as my application then remains busy for a longer time than it should be ?
------------------
Come on in !! Drinks are on the house in the Big Moose Saloon !!
 
Jack Shirazi
Author
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wilson & Kesselman cover this in their book (Java Platform Performance: Strategies and Tactics.). The relevant chapter, chapter 10, is online. There's a link from the tips page at my site
 
Always look on the bright side of life. At least this ad is really tiny:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!