In this program we are going create a sheet and
then after we create a oval and fill color into oval.
The package we need to import is java.io.*,java.util.* ,org.apache.poi.hssf.usermodel.HSSFSheet,org.apache.poi.hssf.usermodel. HSSFPrintSetup, org.apache.poi.hssf.usermodel.HSSFPatriarch,org.apache.poi.hssf.usermodel.HSSFClientAnchor,org.apache. poi.hssf.usermodel.HSSFSimpleShape and org.apache.poi.hssf.usermodel. HSSFWorkbook.
The method used in this example shift row
This method is used to fill the color of the shap.
In this example we are creating the sheet and an oval and at last we fill the color of the oval by using setFillColor().The output display as shown below.
The code of the program is given below:
The output of the program is given below:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 25, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles