title: java JTABLE - Refresh TextFields after Delete An item from database
body: <p>I have text fields and a JTable on a Frame. When user clicks on the JTable row or moves key up and down, textfields filled up with these selected row values so that user can update the row. So the problem is when I select the row and then pressed the delete button the table refreshes but the textfields still show the deleted row values.So at this moment I dont want to reset the fields. I want to show the row values which comes before the deleted row in the text field </p>
  
  <p>For example there are two rows</p>
  
  <pre><code>id  name  
  1   hello
  2   bello
  </code></pre>
  
  <p>user selected the row which has <code>ID</code> 2 and delete it. now the values on the textfield should be hello not bellow</p>