That's an old AWT event listener callback. From Java 1.0! Did you find this project in a museum?

The Swing version of that method is:


public void mousePressed(MouseEvent e) {
int x =...