public class Cell extends JPanel { // Indicate the row and column of this cell in the board private int row; private int column; // initial used for this cell private char initial= ' '; public Cell(int row, int column) { this.row = row; this.column = column; setBorder(new LineBorder(Color.BLACK,1)); setOpaque(false); }
Sorry, if it was posted before ,coz I dunno what i am looking for. Thanks in advance.