I have a table like this. The second column uses a JTextField renderer and the third column uses a JPasswordField based renderer and editor.
Tell the table to automatically commit when losing focus:
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);