So I have an editable Jtable (TreeTable actually) with a custom model. The current setValueAt method needs to be updated to prevent values greater than a certain amount (dependant on the row).
This is easy to prevent (simply don’t set the value if it’s invalid) but what’s the best way to inform the user that the chosen amount was invalid? Popping a dialog from the model seems rather nasty.
Agreed. Use a custom editor for the column. Maybe something like: