In this example we are going to create line in PowerPoint presentation using java.
Draw Line in PowerPoint Presentation Using Java
In this example we are going to create line in PowerPoint presentation using java.
In this example we are going to make an slide and we are inserting a line in it. To insert a line we are making a line, set line style and color. To create an object of Line we are using Line() constructor. At last we are adding the line in slide. The setLineStyle(style) method is used to set the style of line. The setLineColor(Color color) method is used to add the color of the line.
The code of the program is given below:
import org.apache.poi.hslf.HSLFSlideShow;
|
The output of the program is given below: