09-15-2012 03:19 PM
I am trying to populate a table on the screen as and when the user clicks a Labelfield (20 rows are populated per click).
When the user clicks the labelfield, following takes place:
1). A chunk of data is read from the SQLite database in a background thread.
2). The data is then populated within the existing table on the screen (by adding more fields to the Table Layout Manager) in the invokeLater() method.
I am currently facing a problem of 'Application not responding; process terminated' when i keep loading more items for say about 3 to 4 times (i.e. after around 60-80 rows are populated).
I am afraid this could be caused due to the UI thread getting held up for a long time while the population is taking place. Is there a different way to update the UI, so that the app runs smoothly?
I would appreciate any help as I have been held up with this problem for some time now.
Solved! Go to Solution.
09-16-2012 04:13 AM - edited 09-16-2012 04:14 AM
I dont know if I get you right, I did a similar thing with page flipping a list of data. Because a large chunk of rows will end up with out of memory error
09-16-2012 09:38 AM
09-17-2012 07:04 AM
09-17-2012 11:53 AM - edited 09-17-2012 12:27 PM
Thank you so much. That worked. It was of great help.