Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable behavior on mouse press and press "TAB"  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!