title: Java XWPF, set paragraph hanging indentation
body: <p>I am coding a program in JavaFX to convert essays with no indentation and such as MLA styled documents. My question right now, how do I enable <b>hanging indentation</b> to a specific xwpfParagraph? I am using Apache poi 3.17.</p>
  
  <p>I already wrote to word document, and everything seems to be working fine. I'm just not sure how to set the hanging indentation.</p>
  
  <p>I'm aware of the function <code>setIndentationHanging()</code>, but I am not sure how to get it to work. I tried using <code>xwpfParagraph.setIndentationHanging(X);</code> but that doesn't seem to work. </p>
  
  <p>Any help is greatly appreciated. Thanks in advance!</p>
  
  <pre><code>XWPFDocument document = new XWPFDocument();
  String tempMessage = textArea.getText();
  XWPFParagraph p1 = document.createParagraph();
  XWPFRun run = p1.createRun();
  p1.setAlignment(ParagraphAlignment.LEFT);
  p1.setSpacingBetween(2.0);
  run.setText(tempMessage + "\n");
  run.setFamilyFont("Times New Roman");
  tempMessage = "";
  </code></pre>
  
  <p>This code snippet is the one I am using to create the word document, create a paragraph, assign the paragraph some text (tempMessage), set alignments and spacing. I would like to know how I could go around adding <b>Hanging Indentation</b> for this specific paragraph.</p>