title: How to format cell in XWPFTable in Apache POI
body: <p>I am able to create a table in Apache POI in word ,my table is coming with proper value but what i want i want to decrease the cell size of the  column  size in the table how to do that ,please help..Here is what i have done upto </p>
  
  <pre><code>              XWPFTable table = document.createTable(5,3);
  
          r3.setText("MSH Activity Score Card");
          r3.setBold(true);
  
  
  
          //creating first row 
          table.getRow(0).getCell(1).setText("Job ID#"); 
          table.getRow(0).getCell(2).setText("1362"); 
  
          //creating second row
  
          table.getRow(1).getCell(1).setText("Job Title#"); 
          table.getRow(1).getCell(2).setText("Global Network Architect Consultant");
  
          //creating third row
          table.getRow(2).getCell(1).setText("Client");
          table.getRow(2).getCell(2).setText("Carnival Corporation"); 
  
          //creating fourth row
          table.getRow(3).getCell(1).setText("Start Date");
          table.getRow(3).getCell(2).setText("11/13/2014");
  
         //creating fifth row
          table.getRow(4).getCell(1).setText("Days Old");
          table.getRow(4).getCell(2).setText("33");
  
          CTTblWidth width = table.getCTTbl().addNewTblPr().addNewTblW();
  
          width.setType(STTblWidth.DXA);
          width.setW(BigInteger.valueOf(1500));
  </code></pre>
  
  <p>I am getting a table with data but i want to minimize the size <img src="https://i.stack.imgur.com/hnsKM.png" alt="enter image description here"></p>
  
  <p>But i want this size<img src="https://i.stack.imgur.com/GP5yL.png" alt="enter image description here"></p>