title: how to select one cell from SWT table
body: <pre><code>table.addSelectionListener(new SelectionAdapter() 
          {
              public void widgetSelected(SelectionEvent e) 
              {
                  if(table.getSelectionIndex() != -1)
                  {
                      System.out.println(table.getSelectionIndex());
                      TableItem item = table.getItem(table.getSelectionIndex());
                      System.out.println(item.toString());
                  }
                  else
                  {}
              }
          });
  </code></pre>
  
  <p>when i click on any cell in my table, only the first cell of that row is selected and returned and not exactly that cell</p>
  
  <p>please tell me how can i select and get item from exactly that cell which i select</p>
  
  <p>please see the image
  <img src="https://i.stack.imgur.com/a82Tw.png" alt="enter image description here"></p>
  
  <p>i have selected 3rd column but it returned the TableItem of first column</p>