• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JTable problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you have to reset all table values and not just the one that changed?
 
Your mind is under my control .... your will is now mine .... read this tiny ad
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic