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