Results 1 to 3 of 3
  1. #1
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default Traversing through a sudoku grid.

    My sudoku grid is a 9x9 and every cell is a JTextField. I was thinking of using arrow keys to move around the JTextField instead of just using tab. If someone could tell me what to research (please be explicit), I would be very grateful.

    Thanks in advance.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  2. #2
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    5

    Default

    Well, if you want keyboard control, the KeyEventListener interface is what you need. Be sure to check out the API for it, and the KeyEvent API as well, all the methods you need are there.
    Ever seen a dog chase its tail? Now that's an infinite loop.

  3. #3
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    5

    Default

    You may have good luck using key bindings. Check out the tutorial on using this over at the Sun tutorial site for more info on this.

Similar Threads

  1. Sudoku solver with threads
    By judas in forum New To Java
    Replies: 8
    Last Post: 05-27-2010, 03:07 PM
  2. Error from sudoku class
    By hongi in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 02:08 PM
  3. Sudoku randomizer help
    By mochibon in forum New To Java
    Replies: 0
    Last Post: 04-07-2010, 03:05 AM
  4. SUDOKU game problem
    By bumblyb33 in forum AWT / Swing
    Replies: 2
    Last Post: 05-05-2009, 11:18 PM
  5. Traversing a JTabbedPane
    By Inks in forum AWT / Swing
    Replies: 12
    Last Post: 03-11-2009, 05:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •