You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Ramon F Herrera <ra...@patriot.net> on 2010/08/16 23:38:23 UTC

Is is possible to apply a 4-line border to an array of cells?

Newbie alert...

I am trying to add a border to a rectangular group of cells. This is 
what I have guessed so far:

         style = wb.createCellStyle();
         style.setDataFormat(wb.createDataFormat().getFormat("text"));
         style.setBorderTop(CellStyle.BORDER_THICK);
         style.setBorderRight(CellStyle.BORDER_THICK);
         style.setBorderBottom(CellStyle.BORDER_THICK);
         style.setBorderLeft(CellStyle.BORDER_THICK);
         styles.put("framed", style);

Is there a way to apply the above style to a "super-cell"? I need only 4 
THICK border lines, obviously, the exterior ones.

Thx,

-RFH




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org