X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 26B615290D for ; Fri, 22 Jul 2005 16:06:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76020-09 for ; Fri, 22 Jul 2005 19:05:55 +0000 (GMT) Received: from mail.alamon.com (s1-7-rb5.ka.centurytel.net [207.118.56.7]) by svr1.postgresql.org (Postfix) with ESMTP id C434652903 for ; Fri, 22 Jul 2005 16:05:53 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alamon.com (Postfix) with ESMTP id C9AB124C374 for ; Fri, 22 Jul 2005 13:05:54 -0600 (MDT) Received: from mail.alamon.com ([127.0.0.1]) by localhost (mail.alamon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09897-03 for ; Fri, 22 Jul 2005 13:05:48 -0600 (MDT) Received: from [10.0.9.223] (gesker.alamon.com [10.0.9.223]) by mail.alamon.com (Postfix) with ESMTP id CE19D24C064 for ; Fri, 22 Jul 2005 13:05:48 -0600 (MDT) Message-ID: <42E1438C.70900@gesker.com> Date: Fri, 22 Jul 2005 13:05:48 -0600 From: Dennis Gesker Organization: Gesker.com User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: JDBCRowSet in tableModel setValueAt method Content-Type: multipart/alternative; boundary="------------080800020403020902080400" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at alamon.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.152 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_30_40, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200507/259 X-Sequence-Number: 13407 This is a multi-part message in MIME format. --------------080800020403020902080400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello All: I've been attempting to build a tableModel for a swing JTable. I have been able to populate my jtable using a rowset. However, I seem to be running into a strange problem changing data in my JdbcRowSet. In my implementation of setValueAt() I've added the following code surrounded by a try/catch. rowSet.absolute(rowIndex + 1); rowSet.setObject(columnIndex + 1, value); fireTableCellUpdated(rowIndex, columnIndex); I've imported com.sun.rowset.JdbcRowSetImpl only because I didn't see a JdbcRowSetImpl in the 8.0-311 JDBC3 driver. If there is a JdbcRowSetImpl in the driver could someone point it out to me. The data isn't updated and no error is returned from the program when I try to change a value in the JTable. I've confirmed that the setValueAt method is being called using a println statments. I could really use a pointer/clue.... If anyone could help or perhaps share a working example of a tablemodel I'd be very greatful. Cordially, Dennis --------------080800020403020902080400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello All:

I've been attempting to build a tableModel for a swing JTable. I have been able to populate my jtable using a rowset. However, I seem to be running into a strange problem changing data in my JdbcRowSet.

In my implementation of setValueAt() I've added the following code surrounded by a try/catch.

            rowSet.absolute(rowIndex + 1);
            rowSet.setObject(columnIndex + 1, value);
            fireTableCellUpdated(rowIndex, columnIndex);

I've imported com.sun.rowset.JdbcRowSetImpl only because I didn't see a JdbcRowSetImpl in the 8.0-311 JDBC3 driver.

 If there is a JdbcRowSetImpl in the driver could someone point it out to me.

The data isn't updated and no error is returned from the program when I try to change a value in the JTable. I've confirmed that the setValueAt method is being called using a println statments.

I could really use a pointer/clue....

If anyone could help or perhaps share a working example of a tablemodel I'd be very greatful.

Cordially,
Dennis

--------------080800020403020902080400--