title: Java calling method and moving object across the screen using timer class
body: <p>I am trying to get my actionPerformed to loop through a method from another class, using the Timer class, by doing so this will repaint my object and appear as though it is moving across the screen.
  I have added a System.out.println statement to see if the actionPerformed is firing. The text is being displayed but the object doesn't seem to move across the screen, not sure what i'm doing wrong :\ Can anyone shed some light on whats not right?</p>
  
  <p>//this is my ball class, which i have made into an array. The timer.start() is in the constuctor</p>
  
  <pre><code>public void actionPerformed (ActionEvent e)
  {
      for(int i = 0; i &lt; bl.length; i++)
      {
      bl[i].move();
      System.out.println("Fired");
      repaint();
      }
  }
  </code></pre>
  
  <p>//this is my move class to move the object across the screen, x=0 and move =5.</p>
  
  <pre><code>public void move()
  {
      x = x + move;
  }
  </code></pre>