JTable Render And Editor Query?
In the JTable editor mode I have JTextField, when a value is entered and the focus is lost from the editor,the value is displayed as text in the render mode.
The Scenario is this :: If a wrong is value is entered in the开发者_JAVA技巧 text field, how can I restore the focus back in the editor and in the text field without allowing the focus to travel to render..
Thank You in advance....
override the cellEditor's stopCellEditing and run a validation in there: if valid return super, if not return false
精彩评论