java - How to add JCheckBox in JTable? -
first of apologize english neglect explain problem. first want jcheckbox in jtable have. i retrieving student id , student name database in column index 0 , 1. want third column should absent/present take whether student present or absent jcheckbox value. here code jtable values : attendance.java /* * change template, choose tools | templates * , open template in editor. */ package shreesai; import java.sql.connection; import java.sql.preparedstatement; import java.sql.resultset; import java.util.vector; /** * * @author admin */ public class attendance{ connection con = connectdatabase.connecrdb(); public vector getemployee()throws exception { vector<vector<string>> employeevector = new vector<vector<string>>(); preparedstatement pre = con.preparestatement("select studentid,name student"); resultset rs = pre.executequery(); while(rs.next()) { vector<string> ...