Swing: Can checkboxes in JTable return two different String values instead of just the boolean "true" and "false"?
Posted on 2008-10-29
Can you create a column in a JTable that will use checkboxes for the editor that doesn't necessarily have values of "true" and "false." For instance, could checkboxes be used to indicate "male" vs. "female" or "Automatic" vs. "Manual?" If so, how does one programatically tell Java which option indicates a checkmark and which indicates a blank?
[ ] Automatic Transmission
Value of the checkbox checked would be "Automatic". Value of the checkbox unchecked would be "Manual".