Results 1 to 2 of 2
  1. #1
    rajkobie is offline Member
    Join Date
    Nov 2010
    Rep Power

    Default How do I move an image after a certain time in Java?

    I have a JPanel which i draw images in. I need to automatically move an images through the screen after about 1 second. Like move 50 pixels, stop for 1 second, move another 50 pixels. Or i wouldn't mind moving it all the way across the screen very slowly.

    I tried just updating the position but it just moves the images rapidly. It is not show that it means. It just BAM moves.

    How can i move across the jpanel slowly.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Richmond, Virginia
    Blog Entries
    Rep Power

Similar Threads

  1. how to move an image automatically without using mouse
    By saranyabaskaran in forum New To Java
    Replies: 6
    Last Post: 03-19-2011, 10:00 AM
  2. java gui that moves image based on time
    By androidsm in forum New To Java
    Replies: 10
    Last Post: 01-16-2011, 12:46 AM
  3. how to move this image
    By in forum New To Java
    Replies: 1
    Last Post: 01-08-2011, 04:53 PM
  4. To make image move
    By mneskovic in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 08:23 PM
  5. Replies: 5
    Last Post: 11-02-2008, 06:41 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