• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable behavior on mouse press and press "TAB"

 
Jack Lau
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

My JInternalFrame contains a JTable and there is TableCellEditor in a column. The component in the TableCellEditor is JTextField.

when I press "TAB", the JTextField inputVerifier will perform checking, if correct, the value of component in the TableCellEditor will be completed (e.g. I type 'H', then press "TAB", if 'H' exist, it will completed to "HELLO")
else the focus will remain in the JTextField.

when I use mouse press instead of pressing "TAB", the value of component in the TableCellEditor does not refresh. Does anyone know why?

Thanks,
Jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!