Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable problem  RSS feed

 
Martin Borovnik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!

i've following problem:

i have 2 hashtable with products. one for official products, one for own products.
then i have 2 tables, one for the officials, one for the own products.

a third table shows special offer products. these are products from the other tables. now i can change values in the 3rd table and the values should also be changed in the others.

my problem - the gui is very slow. if i look to the other tables, they just show checkboxes (renderer) after one or two seconds. the problem is, that i have to set the tablevalues new, after changing a value. so i have 10000 products (rows) with 13 columns and for each changed value i have to make an array with these products from the hashmap.

is there an easier way? i hope so, because all the time building an array from a hashmap is not opti ;-)

regards
martin
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you have to reset all table values and not just the one that changed?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!