Changing cell color using apache poi

后端 未结 5 2014
名媛妹妹
名媛妹妹 2020-12-05 14:08

I\'m using Apache POI to read data in a spreadsheet of part numbers. I look up the part number in our database, if we have a CAD drawing of the part I color the part number

5条回答
  •  长情又很酷
    2020-12-05 14:34

    checkout the example here

    http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/ss/examples/BusinessPlan.java

    style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());
    

提交回复
热议问题