title: cannot override dragfinished method
body: <p>I have a subclass of the Button class and I would like to override the <code>dragFinished</code> method of the Component class. However, when I try to do this: </p>
  
  <pre><code>@Override
  protected void dragFinished(int x, int y){
      // other code here
  }
  </code></pre>
  
  <p>I am getting an error: <code>method does not override or implement a method from a supertype</code>.</p>
  
  <p>Also, if this provides more information, when I try to call <code>super.dragFinished(x, y)</code> within the method, I get this error: <code>dragFinished(int,int) is not public in Component; cannot be accessed from outside package.</code></p>
  
  <p>Any help will be appreciated. Thanks!</p>