Apache POI Excel Cell Border

To set border of cell, Apache POI provides methods that can be used to set border color, thin, dashed etc. In the following example, we have created a cell and set border from top to bottom and right. See the example.

Apache POI Excel Cell Border Example

Output:


Apache POI Excel Cell Border