title: how to stop cell editing in JTextPane ,cell editor of JTable
body: <p>I created JTable with JTextPane as cell editor.I want to stop cell editing and want to do some processing if I pressed enter key in JTextPane .And I also want to use single line in JTextPane. So, I add keylistener in JTextPane and call stopCellediting method. But it does not work, focus is in JTextPane and if I click other cell, the selected row and the selected column is not changed.So,please help me to use single line in JTextPane and to stop cell editing if I pressed enter like the default cell editor.Thanks a lot!!</p>