title: Get row values of ticked checkbox in jtable
body: <pre><code>class TableModel extends AbstractTableModel {
  
          Object rowData[][] = DataAccess.getSentences();
          String columnNames[] = {"Category", "Sentences", "Boolean"};
  
          public int getColumnCount() {
              return columnNames.length;
          }
  
          public String getColumnName(int column) {
              return columnNames[column];
          }
  
          public int getRowCount() {
              return rowData.length;
          }
  
          public Object getValueAt(int row, int column) {
              return rowData[row][column];
          }
  
          public Class getColumnClass(int column) {
              return (getValueAt(0, column).getClass());
          }
  
          public void setValueAt(Object value, int row, int column) {
              rowData[row][column] = value;
          }
  
          public boolean isCellEditable(int row, int column) {
              return (column &gt;= 2);
          }
      }
  </code></pre>
  
  <p>Sample scenario: </p>
  
  <p>Headers: Category, Sentences, Boolean</p>
  
  <p>Row1: apple | this is an apple | checkbox</p>
  
  <p>Row2: cat | this is a cat | checkbox</p>
  
  <p>When I ticked the first row. It will System.out.println() the "apple" and "this is an apple."</p>
  
  <p>If you have much time, i would appreciate if there's a code snippet. Thank you.</p>