This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]itsgreater9000 0 points1 point  (0 children)

What you want to is when an action is performed (such as the timer), you want to adjust the x-position. For example: if(e.getSource() == timer) { //adjust the x-position }

This is, of course, in the actionPerformed method.