Exacly as stated in the subject how to make JTextField lose its focus?
Something like:
jtf.setFocus(false)
You could simply transfer focus to another component:
myOtherComponent.requestFocusInWindow();