草庐IT

CellRangeAddress

全部标签

java - 使用什么代替 ApachePOI 中已弃用的 CellRangeAddress.valueOf

我想在区域中添加条件格式,但我在教程中看到的一种方法已被弃用。用什么代替它。示例:ConditionalFormattingRulerule2=sheetCF.createConditionalFormattingRule(ComparisonOperator.LT,"50");PatternFormattingfill2=rule2.createPatternFormatting();fill2.setFillBackgroundColor(IndexedColors.GREEN.index);fill2.setFillPattern(PatternFormatting.SOLID_