Using Checkboxes in JTables: Mastering Java Swing Part 71

6m 44s
Download
Caveofprogramming

Cave of Programming

After working as a software developer and contractor for over 14 years for a whole bunch of companies including CSC, Proquest, SPSS and AT&T in the UK and... Read more

How to use checkboxes in JTable. It's surprisingly simple.

If your JTable stores a boolean value, getting it to use a checkbox to display the value is very simple; all we need to do is inform the table via the table model what class of object its working with.

Displaying checkboxes in tables
Working with data types in a table model