How to set a cell format to Text
<p>I am using Apache-POI 3.14.  I have a need to lock-down a cell to a "Text" format.  The data in my cell might be all digits, but it is still considered a string.  When I write the cell, I do it like this:</p>

<pre><code>cell.setCellValue("001");
cell.setCellType(Cell.CELL_TYPE_STRING);
</code></pre>

<p>When I open the output workbook in Excel, the cell contains the correct value ("001") and it displays with a small green triangle in the corner.  Hovering over the exclamation point displays the hover text <code>The number in this cell is formatted as text or preceded by an apostrophe</code>.  When I look at the cell formatting (Right-click -> Format cells), the "Category" is displayed as "General".  I expected this to be "Text".</p>

<p>The problem arises when a user modifies the value in the cell by entering only digits.  Because the "Category" is "General", the value is entered and displayed as a number, removing leading zeroes and right-justified.</p>

<p>How can I achieve the same result as Excel's "Format cells" dialog?</p>