mx[counter] = e.getX();
my[counter] = e.getY();
System.out.println("x: " + mx[counter] + " y: " + my[counter]);
Graphics g = this.getGraphics();
if(counter > 0)
g.drawLine(mx[counter-1], my[counter-1], mx[counter], my[counter]);
counter++;
if(counter > ARRAYSIZE-1) counter = 0;