File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Sudoku Applet " Watch "Sudoku Applet " New topic
Author

Sudoku Applet

Nikki McCartney
Greenhorn

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.

Thanks!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sudoku Applet
 
Similar Threads
How to reflect an event that occurs in a bean to an applet which holds the bean ?!!
Serialization??
Exception -- java.lang.StackOverflowError
SoDuko puzzle
named after a count