How to setfocus on any particular cell in default table model ( Very Urgent. Help Needed)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, October 29, 2001 08:51 PM

In a default table model we have more than five cells in a row, i do a validation of the data entered in the cell , the moment the user tries to leave the cell, the validation is possible. The problem is when an invalid data is entered i need to restrict the user to remain in the same cell itself.


Is there any way in which this cvould be achieved. That is the focus should be set on any particular cell in a row.

Re: How to setfocus on any particular cell in default table model ( Very Urgent. Help Needed)

Posted By:   kamlesh_patel  
Posted On:   Friday, November 9, 2001 10:31 AM

Hi,

You will have to write your own celleditor class which extends DefaultCellEditor. Again in your implementation of celleditor you will have to override stopCellEditing method. This will get you exactly what you said!!!


sounds interesting ??


kamlesh
About | Sitemap | Contact