how t draw line on image, when given certain pixel

I m quite new into JAVA2d , and i m trying to built a application, which will provided a map will get position of laptop in a building, my problem is only i have to show that laptop on the map provided and the line should grow as i get new positions?

can anybody help me plzzzzzzzzz
plzzzzzzzzz

koitohay

I don’t understand what you meant in your post - do you want to draw/animate a line from some 2D point to the position of the laptop as the laptop moves? Or do you want to grow your map as new positions of the laptop are added?