JTable custom cell renderer focus problem

后端 未结 2 1286
一整个雨季
一整个雨季 2021-01-13 17:38

I have a table like this. The second column uses a JTextField renderer and the third column uses a JPasswordField based renderer and editor.

2条回答
  •  悲&欢浪女
    2021-01-13 18:25

    Tell the table to automatically commit when losing focus:

    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    

提交回复
热议问题