JTable cell action validation - TechRepublic
General discussion
February 6, 2002 at 03:50 PM
shepps

JTable cell action validation

by shepps . Updated 24 years, 3 months ago

Hi,

I have a JTable where two of the columns contain min and max numbers defining a range.

What I would like to do is this: whenever a new row is inserted and a value is entered into either the max or min column I would like to check to see ifthe this number falls between the min and max range of ANY of the other rows in the JTable. If so, pop up a message telling the user to enter another value.

What should I be using? CellEditors? or would some other type of event handling on the table be more appropriate?

Thanks

Philip Sheppard

This discussion is locked

All Comments