/** Invoked when an action occurs. */ public void locateOnComponent(int x, int y, java.awt.Component f) { cX = x; cY = y; super.locateOnComponent(x, y, f); }