From: Dennis Gesker <dennis@gesker.com>
To: pgsql-jdbc@postgresql.org
Subject: JDBCRowSet in tableModel setValueAt method
Date: Fri, 22 Jul 2005 13:05:48 -0600
Message-ID: <42E1438C.70900@gesker.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: dennis@gesker.com
Subject: Re: JDBCRowSet in tableModel setValueAt method
In-Reply-To: <42E1438C.70900@gesker.com>
References: <42E1438C.70900@gesker.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox