Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/11/2014, 11:27
fcosun
 
Fecha de Ingreso: octubre-2011
Mensajes: 153
Antigüedad: 12 años, 6 meses
Puntos: 7
Llenar arreglo bidimensional con jTextField

tengo 4 jTextField, la idea es poder ingresar los datos a un arreglo bidimensional de 3 x 4


Ver Imagen 1

Quiero hacer algo como esto:


Ver Imagen 2


Ver Imagen 3 Resultado



Código Java:
Ver original
  1. matriz[x][y]= Integer.parseInt(numero2.getText());

tambien eh probado con este codigo para la carga, no funciona

Código Java:
Ver original
  1. for(int x=0;x<3;x++) {
  2.                 for(int y=0;y<4;y++) {
  3.                     matriz[x][y]= Integer.parseInt(numero2.getText());
  4.                     matriz[x][y]= Integer.parseInt(numero3.getText());
  5.                     matriz[x][y]= Integer.parseInt(numero4.getText());
  6.                     System.out.println(matriz[x][y]);
  7.                 }
  8.             }
__________________
Mi mail: [email protected]

Última edición por fcosun; 12/11/2014 a las 12:00 Razón: agregar informacion