Hello Joe, A few ideas come to mind:
1. As previous people have suggested - only hold in memory those rows that are being displayed - then upon an event - a click/filter/search whatever - fetch more rows. 2. If the users do not need to all the rows all the time - (and who would want to always see 30,000 rows?) - you could implement some filters that restrict the number of rows being displayed by some criteria. The when that criteria is changed by the user - you fetch the set of rows for the new filter. 3. If you absolutely MUST have all rows in memory, have you considered compressing the data in memory? You could use a zip class, or some other third party product to compress your textual data in your objects, and only decompress when the object is displayed. Just a few thoughts. Khalid Akram Developer Royal Bank of Scotland London -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 23:00 To: [EMAIL PROTECTED] Subject: Swing and Memory Issues Hi, I have developed a massive application in swing which uses lots of memory due to large files. JTables of 30,000 rows and 80+ columns are not uncommon. I have a real problem now, as I can't seem to reduce the memory problems. I found the weaklistener tutorials to be alright, but would impact too much on code. Does anyone know how to correctly use the www.chka.de packages? I would really like some code examples on the proper use of weaklisteners in REAL applications. I have tried to build a Generic instance disposal method, which uses reflection to remove all listeners and set all objects to null, but its still not working. I have laboriusly searched google, and nothing is around either. I can't afford JProbe or Optimize it, so what are my options? Can anyone help? Joe Cole _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing ******************************************************************** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority ******************************************************************** _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing