-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTile.java
More file actions
43 lines (34 loc) · 805 Bytes
/
Copy pathTile.java
File metadata and controls
43 lines (34 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.cis1200.sudoku;
import javax.swing.*;
public class Tile extends JTextField {
private int row;
private int col;
private int digit; // current digit
private int answer;
public Tile(int row, int col) {
this.row = row;
this.col = col;
this.digit = 0;
this.answer = 0;
}
public Tile(int row, int col, int digit) {
this.row = row;
this.col = col;
this.digit = digit;
}
public Tile(int row, int col, int digit, int answer) {
this.row = row;
this.col = col;
this.digit = digit;
this.answer = answer;
}
public int getRow() {
return row;
}
public int getCol() {
return col;
}
public int getDigit() {
return digit;
}
}