Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/11/2011, 22:41
Avatar de lux_tenebris19
lux_tenebris19
 
Fecha de Ingreso: noviembre-2011
Mensajes: 2
Antigüedad: 12 años, 5 meses
Puntos: 0
Respuesta: jtable en Netbeans

no era la respuesta k buskaba pero gracias por el comentario .encontre la solucion para eliminar un indice de un tabla seria asi

Integer id = (Integer) jTable1.getSelectedRow();
dtm.removeRow (id);



//para leer dato por dato de la tabla y mostrarlo en un messagedialog seria asi


for(int i=0;i<jTable1.getRowCount();i++){
for(int f=0;f<jTable1.getColumnCount();f++){

String a=(dtm.getValueAt(i, f).toString());

JOptionPane.showMessageDialog(rootPane,a);// :D
} }