Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Moving a car

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Moving a car

    Hello dis is Amit....

    i working on a small activity i.e. a car is going on road suddently the car hit the signal light pole the color of the signal light was green as the car hit the pole, the green light get disable and red light start blinking...

    what i want is , i have a panel i am inserting car image on that panel.. n in the 2nd panel i am inserting the image of a pole with that m inserting two button which wud work as lights...

    m dun wid all the designing part but i am unable to make the car panel moveable in the direction of pole panel..

    n i want to to the same wid the help of threads only... plz suggest me the answer.

    Thanks n Regards
    ur new friend
    Amit...


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,370
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Moving a car

    Please read the link in my signature on asking questions the smart way, especially the bit about using proper spelling and grammar. I can barely read what you're saying.

    But if I understand you correctly, I think you want to take a look at the Swing.Timer class.

    See also: Lesson: Performing Custom Painting (The Javaô Tutorials > Creating a GUI With JFC/Swing)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. car program
    By bkruep in forum What's Wrong With My Code?
    Replies: 10
    Last Post: September 30th, 2012, 08:56 AM
  2. Car racing
    By DanielVkc in forum What's Wrong With My Code?
    Replies: 105
    Last Post: July 22nd, 2011, 02:44 PM
  3. The car/vehicle application will be responsible for providing a car simulation.
    By vikasreddy556 in forum What's Wrong With My Code?
    Replies: 13
    Last Post: June 20th, 2011, 01:32 AM
  4. I have problems with my 2d car game.
    By Vegetassj in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 25th, 2011, 10:54 AM
  5. Need help with Assignment. [Car race]
    By jeanfrg in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 17th, 2010, 07:02 AM