//Variable auxiliar matriz (3 filas 3 columnas) String aux[][]= new String[3][3]; //...Filas 0..// aux [0][0] = "a"; //fila 0 columna 0 aux [0][1] = "a"; //fila 0 columna 1 aux [0][2] = "a"; //fila 0 columna 2 //...Fila 1...// aux [1][0] = "b"; //fila 1 columna 0 aux [1][1] = "b"; //fila 1 columna 1 aux [1][2] = "b"; //fila 1 columna 2 //...Fila2...// aux [2][0] = "c"; //fila 2 columna 0 aux [2][1] = "c"; //fila 2 columna 1 aux [2][2] = "c"; //fila 2 columna 2 //-------Imprimir en Consola-------// for(int i=0; i < aux.length; i++){ System.out.println(aux[0][i]); } for(int i=0; i < aux.length; i++){ System.out.println(aux[1][i]); } for(int i=0; i < aux.length; i++){ System.out.println(aux[2][i]); } //-------Imprimir en Text Area-------// for(int i=0; i < aux.length; i++){ txtA_Campo.setText(txtA_Campo.getText()+aux[0][i]); } txtA_Campo.setText(txtA_Campo.getText()+"\n"); for(int i=0; i < aux.length; i++){ txtA_Campo.setText(txtA_Campo.getText()+aux[1][i]); } txtA_Campo.setText(txtA_Campo.getText()+"\n"); for(int i=0; i < aux.length; i++){ txtA_Campo.setText(txtA_Campo.getText()+aux[2][i]); }