jSpinner not cooperating.
I have this jSpinner that I need to allow an "ENTER" key transfer focus to the next component and I'm using the following code:
jSpinner1.addKeyListener(new WorkOrders_jSpinner1_keyAdapter(this));
publicvoid jSpinner1_keyPressed(KeyEvent e){
int key = e.getKeyChar();
if (key == KeyEvent.VK_ENTER){
((Component) e.getSource()).transferFocus();
}
}
For some reason, this does not work. It works fine for other components, like a Textfield. Any ideas ?

