X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2Flife_demo%2FCell.java;h=4faa448034a9990fc4952c8c862939dfc2b1326b;hb=b55174d5b7de316ed8a6e2d5099ff0bf802b6375;hp=6b1ee8ec913951fe7c7b705326faf5a6656ed6d3;hpb=08719db537fae3645ca86f9ee6f8deba4dadf4f4;p=sixth-3d-demos.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java index 6b1ee8e..4faa448 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java @@ -73,7 +73,7 @@ class Cell extends AbstractCompositeShape implements } /** - * Compute cell color depending if cell is active and if mouse is over the + * Compute cell color depending on if cell is active and if mouse is over the * cell. */ private Color computeCellColor() { @@ -98,7 +98,7 @@ class Cell extends AbstractCompositeShape implements } @Override - public boolean mouseClicked() { + public boolean mouseClicked(int button) { setActive(!isActive()); return true; }