Hi Patrik
> System.out.println("xyz " + e) is never coming. Why?
> My Code is like this:
>
>
> package xy;
>
> import java.awt.*;
> import java.awt.event.*;
> import java.awt.GraphicsConfiguration;
>
> import javax.swing.*;
> import javax.swing.event.*;
> import javax.media.j3d.*;
> import javax.vecmath.*;
>
> import com.sun.j3d.utils.applet.MainFrame;
> import com.sun.j3d.utils.image.TextureLoader;
> import com.sun.j3d.utils.universe.*;
> import com.sun.j3d.utils.picking.behaviors.*;
> import com.sun.j3d.utils.behaviors.mouse.*;
> import com.sun.j3d.utils.picking.*;
>
>
>
> public class zzz extends JFrame implements KeyListener {
>
> ...
> ...
aehm somewhere here inbetween you have to add the KeyListener
to an AWT or Swing-Component did you do that?
For example on the Canvas3D?
Like :
Canvas3D myCanvas = new Canvas3D(GraphicConfiguration blabla);
myCanvas.addKeyListener(this);
If you don't have something similair or on a different
component nothing will happen.
For more detail have a look at the Java2 Tutorial Chapter GUI/Swing
EOF,
J.D.
--
Jmark2k+1 (http://www.antiflash.net/jmark)
Test the performance of your PC online!
===========================================================================
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".