Class GMGrid

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GMGrid extends JPanel
A custom JPanel class representing a Sudoku grid.
See Also:
  • Constructor Details

    • GMGrid

      public GMGrid()
      Constructs a new GMGrid object and initializes the grid.
  • Method Details

    • importGrid

      public void importGrid(int[] values)
      Imports values to populate the Sudoku grid.
      Parameters:
      values - An array of integers representing the Sudoku grid values.
    • exportGrid

      public int[] exportGrid()
      Exports the current Sudoku grid values.
      Returns:
      An array of integers representing the current Sudoku grid values.
    • getCellValueAt

      public int getCellValueAt(int row, int column)
      Retrieves the value of a cell in the Sudoku grid.
      Parameters:
      row - The row index of the cell.
      column - The column index of the cell.
      Returns:
      The value of the cell at the specified row and column indices.