I am using a Java Applet to draw diagrams and want to know the position of
the mouse over the applet.
(The applet does not have a mouse coordinate function, and I have not found
an applet which allows me to draw polygons and text with such a function)

The JavaScript commands
window.event.x and window.event.y
work fine - but only outside the applet.

Is there a workaround for this problem - perhaps using layers?