> Date: Fri, 11 Jan 2002 10:12:36 -0500
> From: Jack Gundrum <[EMAIL PROTECTED]>
>
> The following worked with j3d1.2 but doesn't work with j3d1.3. What changed?
>
> canvases[0].addKeyListener(new java.awt.event.KeyAdapter() {
> public void keyPressed(KeyEvent e)
> {
> if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
>System.exit(0);
> }
> }
> );
Are you perhaps using JDK 1.4 with J3D 1.3? The focus model of JDK 1.4 has
changed; the focusability of AWT components is now controlled by the
Component.focusable property. You either have to mouse click into the canvas,
or use the setFocusable(boolean) method on the canvas.
-- Mark Hood
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".