I made a minesweeper game,it prints the board with println on console,but now i need to make a GUI,i need help with the method to print on a textArea or textPane,here is what i have so far
public void mostraTela(char tabuleiro[][]){
System.out.println("\n Lines");
for(int lines = 8 ; lines > 0 ; linnes--){
System.out.print(" "+linha + " ");
for(int coluna = 1 ; coluna < 9 ; coluna++){
System.out.print(" "+ tabuleiro[lines][coluna]);
}
System.out.println();
}
System.out.println("\n 1 2 3 4 5 6 7 8");
System.out.println(" Colunas");
this method is on gui code,it is called by the Game class,i just need to make it print on a textArea