>>>    frame.addFocusListener(this);
>>>    frame.addKeyListener(this);
>>>    frame.addWindowListener(new killAdapter());
>>>    frame.setVisible(true);
>>>    }
>>>    public void focusGained(FocusEvent e)
>>>   {
>>>   baseSound.play();
>>>   }
>>>    public void focusLost(FocusEvent e)

Try to call addKeyListener INSIDE focusGained
(and removeKeyListener inside focusLost)

It may help,

Gena

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to