i'm using a JSpinner like a table cell editor, i have one annoying problem:
The cell remains in NON-editable mode until i click into it, for NON-editable i mean that i can't write into it(it has not focus so it doesn't accept inputs keyboard) but i can change the value with up-down arrows(of keyboard).
So, what i have to do to focus my table cell as soon as i press a key when it is selected?
Except for that problem my SpinnerEditor class works quite well.
Thanks all.
Ok, my solution now is this:
Here's a complete example. It does more than just put the JSpinner in the table, so you can read it and take what you need. I found the answer by Blow to be incomplete and it didn't work for me, so here's something you can compile and run.