Inside a Timer thread loop,how to refresh a JTable in swing
Hello everybody,
I am using a timer thread loop and inside that loop i am featching the data from a datagrampacket,and update a JTable by using
table.setValueAt(value,row ,column);
and after that, by using repaint() method refreash the JTable.But the values are not view on the JTable .
But when print the table data inside the thread loop ,
System.out.println(table.getValueAt(rownum,0));
that value of the table(row,col) print in console.
Please help me to repaint the JTable inside a timer thread loop.
Thanks