I've been trying to load my array into a JTable object with no luck. So here is my array:
int[][] board = {
{0, 0, 0, 0, 2, 0, 0, 0, 0},
{0, 0, 5, 0, 0, 0, 0, 2, 4},
{1, 0, 0, 4, 0, 0, 0, 3, 8},
{0, 0, 0, 6, 0, 0, 0, 0, 7},
{0, 0, 4, 5, 3, 8, 9, 0, 0},
{8, 0, 0, 0, 0, 7, 0, 0, 0},
{7, 4, 0, 0, 0, 6, 0, 0, 1},
{6, 1, 0, 0, 0, 0, 3, 0, 0},
{0, 0, 0, 0, 9, 0, 0, 0, 0}
I went to http://docs.oracle.com/javase/tutorial/uiswing/components/table.html And there is no constructor for putting int arrays, but there is for subject.
Anyone know a method, thanks!