Hey everyone,
I have been having some trouble trying to figure out how to give the
user data retreived from a MySQL database in the form of a
ResultSetTableModel inside a JTable. Once the user sees the data, I
want them to be able to check some check boxes then click next to
continue. The only way I have found to be able to have functioning
check boxes is to use the updateInt() function, then updateRow()
function.
The problem is that this updates the database with the checked values,
and I want the check boxes to always be unchecked when queried. Does
anyone know how to modify a resultSet or tablemodel so that it changes
in the Jtable, but not in the database?
Thanks in advance!
VisionSet - 29 Nov 2005 17:38 GMT
> Does
> anyone know how to modify a resultSet or tablemodel so that it changes
> in the Jtable, but not in the database?
You can't, ResultSet interface does not preclude the option of a connected
one.
You will have to copy the values out into some other structure.
Generally speaking you should assume that paging the resultset is actually
paging within the DBMS.
--
Mike W