In my table model, I return Boolean.class in getColumnClass so that checkboxes are displayed in the first column. Is it possible to add checkboxes to all cells in the first column except the last cell (next to Total)? See screenshot. Thanks!

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Of course, you just need to implement a
TableCellRendererthat returns null when rendering the last row && first column like this one:now you need to set the CellRenderer of the Boolean cell with an instance of this implementation like:
With this implementation the last row/ first column will be presented empty.