Results 1 to 2 of 2
  1. #1
    pizzadude223 is offline Member
    Join Date
    Jul 2010
    Rep Power

    Default How to move the points on a predrawn line?

    So I made a loop that has a 1 second wait, and I declare x as an integer, then keep adding ten to it and use it as one of the points on a line, but it keeps creating more lines. I want it to erase the previous line and create a new line so it looks like the line keeps moving. Can anyone help me on how I would do this?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    to erase the previous line
    Write over the old line with the background color?

Similar Threads

  1. Replies: 2
    Last Post: 07-02-2010, 03:20 PM
  2. Replies: 4
    Last Post: 09-10-2009, 11:18 AM
  3. Replies: 9
    Last Post: 04-07-2009, 04:51 AM
  4. Replies: 2
    Last Post: 08-24-2008, 01:30 AM
  5. Reading in data from file line by line
    By bluekswing in forum New To Java
    Replies: 1
    Last Post: 10-02-2007, 01:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts