title: How to select a row in jtextarea
body: <p>I need to select a row in the <code>jtextarea</code></p>
  
  <p>this is my first project which I make a pos system using java,what I need to do here is that when there is a list of products in the jtextarea which are added to cart by the customer and suddenly customer wants to remove some items from the cart then my pos system should allow to select the item from the row and remove it and remove it from the mysql table too</p>
  
  <pre><code>textArea1.setText(item1 + "\n" + item2 + "\n" + item3 + "\n");
  </code></pre>
  
  <p>when there is a list of products in the jtextarea which are added to cart by the customer and suddenly customer whats to remove some items then my pos system should allow to select the item from the row and remove it and remove it from the mysql table too</p>
  
  <p>and if you think there's a better object that jtextarea then please suggest it too . </p>
  
  <p>thanks</p>