.
WritableCell wc = ws.getWritableCell(col, row);
WritableCellFormat cf = wc.getCellFormat() != null ? new WritableCellFormat(wc.getCellFormat()) : new WritableCellFormat();
WritableFont wf = new WritableFont(cf.getFont());
try {
wf.setBoldStyle(WritableFont.BOLD);
// refer to http://jexcelapi.sourceforge.net/resources/javadocs/2_6_10/docs/jxl/write/WritableFont.html for other text styles
cf.setFont(wf);
wc.setCellFormat(cf);
} catch ...
CellFormat/WritableCellFormat에는 글꼴, 테두리, 배경색 및 줄 바꿈과 같은 여러 가지 서식 옵션이 많이 포함되어 있습니다.
그래, 그렇습니다. 당신은 그것을 누락되었습니다 : P
편집 : 나는, 당신이 당신의 WritableFont
에서 여러 메소드를 호출 할 수있는 여러 스타일에 대해 충분히 명확 예를 들어 setBoldStyle()
, setItalic()
, setUnderlineStyle()
, setStruckout()
, setColour()
등을하지 않았다으로