File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Sudoku Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Sudoku Applet " Watch "Sudoku Applet " New topic

Sudoku Applet

Nikki McCartney

Joined: Apr 30, 2013
Posts: 1
Hey there.

I'm working on a 9x9 Sudoku Applet which solves the Sudoku puzzle the user puts in.
I'm totally lost on how I can take the input( which is supposed to be in any random place in the 9x9 grid) and pass them to the code I've made.
I really don't think I can create 81 textfields and take those values to the sudoku solver function.
I tried to check GridLayout but I dont see anything which says it can be applied with textfields.
Somebody please help. I shall be really grateful.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
When I created a Sudoku Swing GUI some years ago, I had a Tile class (which extended JPanel) which -when clicked on- would show a popup menu with the 9 digits from which the user could choose one. I also had a SudokuPanel class that also extended JPanel and which encapsulated 9x9 Tile objects.
I agree. Here's the link:
subject: Sudoku Applet
It's not a secret anymore!