/**
* cell visual size
*/
- public static final int SIZE = 20;
+ static final int SIZE = 20;
/**
* Color of the active cell (R, G, B, A)
*/
}
@Override
- public void mouseClicked() {
+ public boolean mouseClicked() {
setActive(!isActive());
+ return true;
}
@Override
- public void mouseEntered() {
+ public boolean mouseEntered() {
setMouseOver(true);
+ return true;
}
@Override
- public void mouseExited() {
+ public boolean mouseExited() {
setMouseOver(false);
+ return true;
}
private void setMouseOver(final boolean isMouseOver) {