JTable Null value

sir

i am using a JTable of 9 rows and 3 coloumn

and i want to retrive value of (8,2) cell but it is returning null value but the value is present in the cell please help me out

TableModel model = jTable1.getModel();

int rows=jTable1.getRowCount();

int cols=jTable1.getColumnCount();

StringBuffer strb=new StringBuffer();

String data=null;

for (int i = 0; i< 9; i++)

{

for (int j = 0; j < 3; j++)

{

strb.append(model.getValueAt(i,j)+",");

}

}

System.out.println(strb);

System.out.println(jTable1.getValueAt(rows,cols)+"go");

[1054 byte] By [nagaraja] at [2007-10-3 10:52:46]
# 1
hi,post a samle working codedaya
dayanandabva at 2007-7-15 6:18:19 > top of Java-index,Desktop,Core GUI APIs...