12061
Support / Using mouse in jPCT applet version
« on: May 14, 2004, 04:07:08 pm »
What is mouseClick()? I suggest to overwrite
in the applet with something like:
That should work. You shouldn't abuse processKey() for mouse events, because it was meant to handle events from the keyboard, not from the mouse.
Code: [Select]
protected void processMouseEvent(MouseEvent e)
in the applet with something like:
Code: [Select]
protected void processMouseEvent(MouseEvent e) {
super.processMouseEvent(e);
if (e.getID()==MouseEvent.MOUSE_CLICKED) {
wire=!wire;
}
}
That should work. You shouldn't abuse processKey() for mouse events, because it was meant to handle events from the keyboard, not from the mouse.