i am coming from C# and using WindowBuilder to make some interactive sudoku game using Java.
By interactive i mean that instead of using buttons, like many other examples, to fill in the 9x9 grid I want my grid to consist out of 9x9 JTextFields that i can edit my Sudoku grid with. I already have the logic done and it works. Whats left is connectiv the frontend to the backend.
My issue as of now is i dont really know how to make a listener for each JTextField. In theory i want my game to start, using a prefilled 9x9 Sudoku array set the text of a couple of boxes and let the user edit them or other boxes until everything is filled. Meanwhile in the background my program would constantly check if the user sticks to the rules.
Is there any way to implement this? I cannot really find this kind of aproach of a sudoku game. Or would you reccomend a different approach? Thank you.