开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜