Hey stackoverflow.
I am currently writing a sudoku solver in java. What i need now is some kind of swing gui to input the already known numbers. I created a jframe but manually adding 81 textfields from the toolbox seems like a bad solution. I am also able to add the with something like this:
this.setLayout(new GridLayout(9, 9));
for (int i = 0; i < 81; i++)
{
this.add(new JTextField("Field"));
}
However I do not know how to address these textfields afterwards so I can collect the user input into a 2dimensional array.
All Help is very much appreciated.