I solved this in a completely different way than coded above...
I implemented MouseWheelListener, MouseMoveListener and a MouseListener on the Applet.
1 2 3 4
| public class Test extends Applet implements MouseWheelListener, MouseListener, MouseMotionListener { ..... } |
Then I added the listeners too the canvas3D of the Applet....
1 2 3 4
| canvas3D.addKeyListener( this ); canvas3D.addMouseListener( this ); canvas3D.addMouseWheelListener( this ); canvas3D.addMouseMotionListener( this ); |
....from there on it was just a case of implementing the methods for each Listener within the applet class and everything seemed to work fine.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| public void mouseWheelMoved(MouseWheelEvent e) { } public void mousePressed(MouseEvent e) { }
public void mouseClicked(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mouseMoved(MouseEvent e) { } public void mouseDragged(MouseEvent e) { }[ |
Thirg...