dcsimg
Thread problem (locking object) while displaying JTable
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Girish_Varde
Posted On:   Tuesday, December 21, 2004 07:22 AM

Hi Everyone, My application displays 10 rows in a Jtable using AbstractTableModel.These are displayed properly but they are not ediatble if I use SwingUtilities.invokeLater() after show(), which creates a thread. In this new thread, i am adding some more rows to the table model data. The table data when updated on sreen is editable, but not earlier. In short, when my thread is running, the table/model object(s) is being used and hence locked. The table data is not therefore editable. I wonder, even though invokeLater() is asynchronous, why is it locking as in case of synchronous case i.e invokeAndWait(). Whwn I use simple Thread().start(), it works fine. Please help. Girish Varde    More>>

Hi Everyone,

My application displays 10 rows in a Jtable using AbstractTableModel.These are displayed properly but they are not ediatble if I use SwingUtilities.invokeLater() after show(), which creates a thread.

In this new thread, i am adding some more rows to the table model data. The table data when updated on sreen is editable, but not earlier. In short, when my thread is running, the table/model object(s) is being used and hence locked. The table data is not therefore editable.

I wonder, even though invokeLater() is asynchronous, why is it locking as in case of synchronous case i.e invokeAndWait().

Whwn I use simple Thread().start(), it works fine.

Please help.

Girish Varde

   <<Less
About | Sitemap | Contact