Checkbox in only one JTable Cell
I want to create an JTable with 2 columns, which looks like a survey. So on the left are the questions and on the right the user can give his answers. But in one line there should be a Checkbox on the right side, so that the user only can answer with yes or no. Is this possible to do with an JTable , and how can I achieve this? regards You have stated in a comment: I tried it with a column of JCheckboxes it works but I just want it in one cell Note this requirement is a little tricky. I think you can override getCellRenderer(int row, int column) and getCellEditor(int row, int column) methods