My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that?
Here is my code:
javax.swing.JOptionPane.showMessageDialog(null, "\n-------");
for (int i = 0; i < 3; i++) {
System.out.print("| ");
for (int j = 0; j < 3; j++)
System.out.print(spot[j] + " | ");
javax.swing.JOptionPane.showMessageDialog(null, "\n--------");