Results 1 to 1 of 1
  1. #1
    Join Date
    Mar 2004
    Location
    Hyderabad,India.
    Posts
    1

    Unanswered: updating and deleting data from the Jtable

    i have written a program to access the data in the database into a table i'm unable to update the data directly from the table (though i've set the table to be editable) the exact problem that i have is that when i'm tryin to update a particular cell in the table the rest of the cells of the row are automatically being set to null and those which take number values are being set to zero .
    And the table is showing a blank row in it even when there is no data in the table causing the exception of invalidcursorstate.

    plz help!!
    P.S. the code was working fine with MS Access but isnt working with oracle9i.

    public void setValueAt(Object aValue , int r , int c)
    {
    try
    {
    rs.absolute(r+1);
    rs.updateObject(c+1,aValue);
    rs.updateRow();
    }
    catch(SQLException e)
    {
    System.out.println("Error"+e);
    }
    }
    Last edited by blueblaze; 03-08-04 at 04:07.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •