JTable - Checkbox add action listener
问题 I've created a simple JTable with check box like below: DefaultTableModel model = new DefaultTableModel(); jTable1.setModel(model); model.addColumn("No:", no1); model.addColumn("Remark", remark1); model.addColumn("Color", colors1); model.addColumn("Done"); TableColumn col1 = jTable1.getColumnModel().getColumn(0); col1.setPreferredWidth(1); TableColumn col4 = jTable1.getColumnModel().getColumn(3); col4.setCellEditor(jTable1.getDefaultEditor(Boolean.class)); col4.setCellRenderer(jTable1