PDA

View Full Version : how can we pass a value from a column of first row to a column of second row


3jsoftwares
May 14, 2014, 02:08 AM
how can we pass a value from a column of first row to a column of second row

my code is like this but it is not working

for(int i=model.getRowCount();i<model.getRowCount();i++)
{

for(int j=0;j<model.getColumnCount();j++)
{
model.setValueAt(timings.getModel().getValueAt(i,j +1 ),i+1 , j);

}

}