Hago lo siguiente:
Código:
Pero en el jtable no pasa nada :S a1.dtmventas.insertRow(a1.jtbventas.getRowCount(), new Object[] {
"1", txtcod.getText(), txtnom.getText(),
txtprecio.getText() });

