title: invokeLater and abstract method() in Java
body: <p>I would like to move my JPanel. But I want to smooth movement, but when I put my method </p>
  
  <pre><code>void changeLocationCard()
  {
    new Thread() {
      public void runCard() {
          for(int i = 0; i &lt; 300; i++) {
  
              SwingUtilities.invokeLater(new Runnable() {
  
              });
              pause(500);
              }
          }
  
  }.runCard();
  }
  </code></pre>
  
  <p>I have a problem with "is not abstract and does not override abstract method run in Runnable. </p>
  
  <p>Declaration class</p>
  
  <p>public class GamePanel extends javax.swing.JPanel {}</p>
  
  <p>Somebody knows why? </p>