This commit is contained in:
parent
d47255953f
commit
97ec0d4ec6
|
|
@ -72,13 +72,6 @@ public class JPanelDraw extends JPanel {
|
||||||
} else {
|
} else {
|
||||||
g.setColor(Color.white);
|
g.setColor(Color.white);
|
||||||
}
|
}
|
||||||
if(cellContent == 2) {
|
|
||||||
g.setColor(Color.yellow); //set collor with rgb value (255,255,0)
|
|
||||||
//g.setColor(new Color(255,255,0));
|
|
||||||
}
|
|
||||||
if(cellContent == 3) {
|
|
||||||
g.setColor(Color.red);
|
|
||||||
}
|
|
||||||
g.fillRect(
|
g.fillRect(
|
||||||
(int) Math.round(x*cellWidth),
|
(int) Math.round(x*cellWidth),
|
||||||
(int) Math.round(y*cellHeight),
|
(int) Math.round(y*cellHeight),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue