I have a Jtable that gets filled with Strings. In a certain editable column, the user is able to modify the data diplayed and then saved. I want to know if there is a way to allow the user to only type certain strings in that cell, while keeping it blank even if he is typing in case the string typed is not allowed.
What i thought of is letting the user type whatever he wants then after he moves to another cell read what he typed and then match it with the strings I allow, to see if I accepted or pop up a warning window then empty the cell again. But I'm asking to se it there is anything more practical