Currently, the page setup -> sheet -> "Row and column headings" checkbox is not supported.
HSSFWorkbook.setRepeatingRowsAndColumns is available.