|    
			
				04/12/2009, 13:35
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: noviembre-2007 
						Mensajes: 81
					 Antigüedad: 17 años, 11 meses Puntos: 0 |  | 
  |  Respuesta: Ayuda urgente  
  No llena mi table  con toda la informacion lo muestra el primer registro..  umm no por que..   bueno solo de clare algunas , pero aun asi deberia.. de mostra los primeros 4 filas . este es mi codigo  
Código:
  private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
            // TODO add your handling code here:
            this.jTextField1.setText("");
            try
		{
             
                String sql_str;
                        sql_str = "SELECT " + c + " FROM  " + t ;
//resultado=sentencia.executeQuery(sql_str);
			st = conexion.createStatement();
			rs = st.executeQuery(sql_str);
			while (rs.next())
			{
                          
		
this.jTable1.setValueAt(rs.getString(1), row, 0);
this.jTable1.setValueAt(rs.getString(2), row, 1);
this.jTable1.setValueAt(rs.getString(3), row, 2);
this.jTable1.setValueAt(rs.getString(4), row, 3);
this.jTable1.setValueAt(rs.getString(5), row, 4);
this.jTable1.setValueAt(rs.getString(6), row, 5);
this.jTable1.setValueAt(rs.getString(7), row, 6);
row++;
                       
  }
			rs.close();
		}
		catch (Exception ioe)
		{
			System.out.println(ioe.getMessage());
		}
       
       
       
        }
    |