public class PDFParser implements ActionListener, MouseListener {
static PDFParser p1 = new PDFParser();
public static void main(Sring ar[])
{
...........
panel.addMouseListener(p1);
}
@Override
public void mousePressed(MouseEvent e) {
System.out.println(e.getX() + "\t" + e.getY());
}
}