Here you go:



int currentX1 = 15;
int currentY1 = 45;
int currentX2 = 15;
int currentY2 = 110;

protected void paint(Graphics g) {