title: How to select multiple rows in JTable?
body: <p>How can I handle multiple rows selection in a <code>JTable</code>? here is the code I have been using for selecting only one row:</p>
  
  <pre><code>table1 = new JTable();
          table1.setModel(Ajmodel);
          table1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
              public void valueChanged(ListSelectionEvent event) {
                  selectedAJ_ID = (Integer) table1.getModel().getValueAt(table1.getSelectedRow(), 0);
              }
          });
  </code></pre>
  
  <p>Thank you in advance.</p>