BOTON ACTUALIZAR BD
Publicado por Sebastian (2 intervenciones) el 07/10/2017 20:07:41
este es mi boton actualizar de mi tabla pero no me actualiza estoy conectado con mysql desde netbeans:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if(table.getSelectedRow()>=0){
String[] datosLeidos
= {
String.valueOf(table.getValueAt(table.getSelectedRow(),0)),
String.valueOf(table.getValueAt(table.getSelectedRow(),1)),
String.valueOf(table.getValueAt(table.getSelectedRow(),2)),
String.valueOf(table.getValueAt(table.getSelectedRow(),3)),
String.valueOf(table.getValueAt(table.getSelectedRow(),4))
};
txtiddoc.setText(datosLeidos[0]);
txtclinica.setText(datosLeidos[1]);
txtdr.setText(datosLeidos[2]);
txtespecialidad.setText(datosLeidos[3]);
txthabitacion.setText(datosLeidos[4]);
ban=true;
txtiddoc.enable(false);
Valora esta pregunta
0