I connect my JTable through the JDBCAdapter with the database
on the same way as j2sdk1.4.2 example shows.
I change the
setValueAt(...) method
so I update only through the ID column:
UPDATE BASE SET Name = 'Mario' WHERE id = 1234
As you see I need ID column in a JTable because I
getValueAt(row, column) for ID value.
So how to get ID value with ID column hide or removed
from JTable? If you have better way of connecting JTable
and database you can suggest me. I only see that from jdk
examples.
Thank you
on the same way as j2sdk1.4.2 example shows.
I change the
setValueAt(...) method
so I update only through the ID column:
UPDATE BASE SET Name = 'Mario' WHERE id = 1234
As you see I need ID column in a JTable because I
getValueAt(row, column) for ID value.
So how to get ID value with ID column hide or removed
from JTable? If you have better way of connecting JTable
and database you can suggest me. I only see that from jdk
examples.
Thank you