title: Printing (get a printout) the elements in an arraylist
body: <p>Scenario:</p>
  
  <p>I am doing a small application to extract a huge number of excel sheet data and sort it then save it and then if need print it. I am using <code>JavaFX for UI and Apache POI</code> for read and write Excel data. I have put my extracted data to an ArrayList and from that I can do the saving part. </p>
  
  <p>First I thought to put the Arraylist elements into TextArea and then I can print it. But appending each element to a TextArea take a  lot of time (Considering about 100 000 cell data). S I thought to print straight from the ArrayList.</p>
  
  <p>Question:
  Is it possible to take a print from an Array list. 
  Any of the following options are possible?</p>
  
  <p>This code can be used to print something from the UI like the TextArea.</p>
  
  <pre><code>if (job != null &amp;&amp; job.showPrintDialog(ProjectNavigation.scene.getWindow())){
              boolean success = job.printPage(node);
              if (success) {
                  job.endJob();
              }
          }
  </code></pre>
  
  <p>But the question is I don't have the data in my UI. Options I thought:</p>
  
  <ul>
  <li>Create a temp file and print it the delete the file</li>
  <li>Convert the array list into something and then print it.</li>
  <li>Any library for do that??</li>
  </ul>
  
  <p>Any suggestions will help. Thank you.</p>
  
  <p>PS:</p>
  
  <p>As Khaled Khnifer Mentioned in he answer I used a ListView to show the items in the UI where I can get the data to print.</p>