what platform are you using? I use Netbeans and sometimes use forms, on forms there is a properties that you can remove focus. other wise I think the code would go:


jSpinner.setFocus(false);
...