title: Connecting and printing to a printer in Java
body: <p>Is there an easy way in Java to do the following?</p>
  
  <ol>
  <li>Connect to a printer (will be a local printer and the only printer connected to the machine).</li>
  <li>Print pages that are 2 pages in 2 different printer trays.</li>
  <li>Get the current print queue count, i.e. I have 100 items to print and 34 have been currently printed, the printer queue should now read 66.</li>
  </ol>