title: Get selected cell value in JTable
body: <p>When I double click the cell of the JTable, I want it to take the value of that cell and write it in the textfield. What should I do? Here is what I have tried so far, but I don't know where to go from here:</p>
  
  <pre><code> table_1.addMouseListener(new MouseAdapter() {
          public void mousePressed(MouseEvent me) {
              JTable table = (JTable) me.getSource();
              Point p = me.getPoint();
              int row = table.rowAtPoint(p);
              if (me.getClickCount() == 2) {
                  textfield.settext(???????????);
              }
          }
      });  
  </code></pre>
  
  <p>i understand how it works:</p>
  
  <pre><code>int row = table.rowAtPoint(p);
  int column = table.columnAtPoint(p);
  textfield.settext(table_1.getValueAt(row, column));
  </code></pre>