0
I have a JTable
which fills the database, where I can select several lines at the same time with the Boolean field that has been added. I need that when you click the "record" button on mine form
the lines selected in the JTable
to write to the database.
I have the following code:
int id= Integer.parseInt((String)txtCidadeAtendida.getValueAt(0, 0));
String cidade = (String) txtCidadeAtendida.getValueAt(0, 1);
pst.setString(3, (String)txtCidadeAtendida.getSelectedRow());
Welcome to Sopt, Daivid. Do you already have some code ready? If so, edit your question and ask it to make it easier to solve your problem.
– emanuelsn
I have this, int id= Integer.parseint((String)txtCidadeAtendida.getValueAt(0, 0)); String city = (String) txtCidadeAtendida.getValueAt(0, 1);pst.setString(3, (String)txtCidadeAtendida.getSelectedRow());
– Daivid
Daivid, please put the code you used in the question, editing it. If possible put more information about what is occurring, if any error is appearing in any console system. And also I advise to before asking a question, to look for other equal (like this).
– Gustavo Cinque
Another thing, can you persist 'anything' in the bank? Or you still don’t have the bank configured?
– Gustavo Cinque
I can record normal in comics.
– Daivid