if (ring == -1) { ring = bull.ringID(e.getX(),e.getY()); } else { bull.swapColors(ring,bull.ringID(e.getX(),e.getY())); ring = -1; }