Getting ENTER to work with a JSpinner the way it does with a JTextField?

Text. AddKeyListener( new KeyAdapter() { @Override public void keyReleased( final KeyEvent e ) { if ( e.getKeyCode() == KeyEvent. VK_ENTER ) { System.out.

Println( "enter pressed" ); } } } ).

It works! Thanks. – Daddy Warbox Dec 19 '08 at 0:29 Happy to help.

Though I'd like to know why the action listener did not work :D – javamonkey79 Dec 19 '08 at 4:56 Beats me. :P Probably because the JSpinner was stealing away inputs somehow? – Daddy Warbox Dec 19 '08 at 7:32 I'd probably use getInputMap() and getActionMap(), but thanks for the post!

– Jason S Jan 5 '10 at 18:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions