title: How to add Amount Column of JTable and Display in JTextField outside the JTable?
body: <p>I want to add all the values of amount column and show in the total amount field.
  <strong>Here's my code</strong></p>
  
  <pre><code>public int getSum()
      {
          int rowsCount = jTable1.getRowCount();
          int sum =0;
          for (int  i=0; i&lt;rowsCount; i++)
          {
              sum = sum+Integer.parseInt(jTable1.getValueAt(i, 9).toString());
          }
          return sum;
      }
  </code></pre>
  
  <p>And Where to  call this getSum().In <strong>ActionPerformed</strong> of TextField or In <strong>Constructor.</strong>
  <strong><em>Note : Whenever i put values in Amount Column it automatically get added/reflect in Total amount</em></strong> 
  <a href="https://i.stack.imgur.com/vONWM.png" rel="nofollow noreferrer">Here's my screen shot of the GUI</a></p>