JFrame JTable and thread

hi,

In one of my code I have used two classes :

class-1) extends jframe and implements runnable

it contains a table which has been populated by the database table

my intention is that the table will continue populating every 3 sec by reading the database

but every time i have to click on the jframe to refresh the jtable - it is not automatically refreshing itself.

can any one please give me a way out

this class also contain a main method

which creats two thread of the two classes 1 & 2

class-2) implements runnable- it just inserts a row in the database table after every 3 sec

[656 byte] By [sid7779a] at [2007-10-1 21:45:34]
# 1
How are you updating your table model?Some example code would help us see where your problem might be.
KPSeala at 2007-7-13 7:48:23 > top of Java-index,Desktop,Core GUI APIs...