title: Java-Swing adding multiple lines in jtable's cell
body: <p>i would like to insert multiple strings in the same cell in a jtable line by line.This is the way i added the data into jtable</p>
  
  <pre><code>       String Model,Brand,Serial;
  
         String itemdetails=Model+Brand+Serial
  
         model.addRow(new Object[]{itemdetails,amountText.getText()});
  </code></pre>
  
  <p>Here what the problem is,getting the output in single line,But i want output like this in a jtbale's cell.</p>
  
  <pre><code>      Model                    //it is string coming from database
        Brand                      //it is string coming from database
        Serial                   //it is string coming from database
  </code></pre>
  
  <p>i have tried this but its working only data within double quotes,not with strings.</p>
  
  <pre><code>                  "&lt;html&gt;lineOne &lt;br/&gt; lineTwo &lt;/html&gt;"   
  </code></pre>