有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何在ApachePOI中设置XWPFTable的主题?

我有下表:

enter image description here

我想给它一个黑色的主题:

enter image description here

我的代码类似于:

table = ForensicExpertWitnessReport_doc.insertNewTbl(cursor);

// Create first row of table // File Name
XWPFTableRow tableRowOne = table.getRow(0);
tableRowOne.getCell(0).setText("File Name");
tableRowOne.addNewTableCell();
 if (filename != null) {
    tableRowOne.getCell(1).setText(filename);
}

我该怎么做?可能吗

更新:例如,在Microsoft Word中:

enter image description here

谢谢大家!


共 (0) 个答案