You are on page 1of 2

String datos[] = new String[4]; datos[0] = txtdni.getText(); datos[1] = txtdt.getText(); datos[2] = txtjd.getText(); datos[3] = txts.getText(); datos[3] = String.valueOf(t); tabla.

addRow(datos); s = s + t; txttn.setText(String.valueOf(s)); txtdni.setText(""); txtnombre.setText(""); txtapellidos.setText(""); txtdt.setText(""); txtjd.setText(""); txts.setText(""); txtdni.requestFocus(); MARICON

JOptionPane.showMessageDialog(rootPane, "Tabla Limpia", "Tabla", JOptionPane.INF ORMATION_MESSAGE); int x = tabla.getRowCount(); for (int i = 0; i < x; i++) { tabla.removeRow(0); } txttn.setText(""); char m = evt.getKeyChar(); if (m < '0' || m > '9') { evt.consume(); char m = evt.getKeyChar(); if (m < '0' || m > '9') { evt.consume(); para agregar String datos[]=new String[6]; datos[0]=txtna.getText(); datos[1]=txtn1.getText(); datos[2]=txtn2.getText(); datos[3]=lblp.getText(); datos[4]=String.valueOf(cbolc.getSelectedItem()); tabla.addRow(datos); txtc.setText(null); txtna.setText(null); txtn1.setText(null); txtn2.setText(null); lblp.setText(null); cbolc.setSelectedItem(0); para eliminar int x=tbldatos.getSelectedRow(); tabla.removeRow(x); txtc.setText(null); txtna.setText(null);

txtn1.setText(null); txtn2.setText(null); lblp.setText(null);

https://soundcloud.com/djgaboh/solo-y-vacio-de-la-ghetto-dj

You might also like