Cheers, I'll do that.
just out of interest, is that the usual way to do this or a workaround?
I had thought that attaching an InputVerifier to a component (which I
believe a table cell is) was a perfectly viable way to verfiy input and hold
the focus until a valid input is supplied e.g. I can use this method
successfully on a JTextField or JFormattedTextField as long as it isn't in a
JTable.
> Cheers, I'll do that.
>
[quoted text clipped - 4 lines]
> e.g. I can use this method successfully on a JTextField or
> JFormattedTextField as long as it isn't in a JTable.
I've never used a JFormattedTextField, but I've heard they're trouble. So,
I stay away from them. It's easy enough to implement custom listeners that
verify input.
Thomas Hawtin - 23 Jan 2006 20:32 GMT
> I've never used a JFormattedTextField, but I've heard they're trouble. So,
> I stay away from them. It's easy enough to implement custom listeners that
> verify input.
Difficult to get right and fiddly. Using a custom Document, or better a
DocumentFilter is better and much easier.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Big Jim - 23 Jan 2006 20:34 GMT
>> Cheers, I'll do that.
>>
[quoted text clipped - 10 lines]
> that
> verify input.
Implemented the stopCellEditing as you suggested, works great, Cheers again.