Search:

Type: Posts; User: ray3

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    2,046

    Re: Help! ArrayIndexOutOfBoundsException

    Well it is a 16 x 16 grid so I would need to compare 16 text fields
  2. Replies
    10
    Views
    2,046

    Re: Help! ArrayIndexOutOfBoundsException

    I'm creating a hexadecimal sudoku puzzle so I need to compare the strings 0-9 and a-f to make sure there are no repeats. And I was going to display the 2D String array in a grid of JTextFields each...
  3. Replies
    10
    Views
    2,046

    Re: Help! ArrayIndexOutOfBoundsException

    I changed JTextField sudoku[][] = new JTextField[col][row]; to JTextField sudoku[][] = new JTextField[20][20]; and that got rid of the out of bounds exception but now there is a null pointer...
  4. Replies
    10
    Views
    2,046

    Re: Help! ArrayIndexOutOfBoundsException

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 16
    at sudoku.SudokuBoard.getPuzzle(SudokuBoard.java:84)

    line 84 is: puzzlePanel.add(sudoku[col][row]);
  5. Replies
    10
    Views
    2,046

    Re: Help! ArrayIndexOutOfBoundsException

    Also if anyone could suggest a way to compare values in the rows and columns in the array. Is it possible to use the compareTo() method to compare the Strings in the text fields? For example compare...
  6. Replies
    10
    Views
    2,046

    Help! ArrayIndexOutOfBoundsException

    Hello, I have to make a sudoku-like GUI puzzle for a program. I was originally going to do this by using a GridLayout but decided it was easier toedit the JTextFields by making a 2D array of...
Results 1 to 6 of 6