Getting graphic objects to move

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • js06am
    New Member
    • Feb 2007
    • 8

    #1

    Getting graphic objects to move

    I have a set of graphic objects, (g.fillOval)'s, and I would like them to move from one set of x & y coordinates to another set elsewhere.

    I'm still new to Java so can anybody suggest what I can do? Some of these ovals will cease moving when they reach the new coordinates while others will continue to move.

    I am aware this may be alot to explain, if anybody knows a good java game programming website that can explain then that would also be greatly appreciated.

    Thanks.
    Last edited by js06am; Apr 20 '07, 04:27 PM. Reason: extra text needed
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Have a look at the javax.swing.Tim er class and carefully read the introduction
    in the API docs: it's especially about animation.

    kind regards,

    Jos

    Comment

    Working...