Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   how can we pass a value from a column of first row to a column of second row (https://www.askmehelpdesk.com/showthread.php?t=792014)

  • May 14, 2014, 02:08 AM
    3jsoftwares
    how can we pass a value from a column of first row to a column of second row
    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);

    }

    }

  • All times are GMT -7. The time now is 06:12 PM.