Home » Apache POI Word Style

Apache POI Word Style

by Online Tutorials Library

Apache POI Word Style

To set text’s style, font, alignment etc, Apache POI provides methods such as setItalic(), setBold() etc. These methods are useful and can be used in Java program to handle word document.

Lets see an example in which we are creating a paragraph and setting it as bold and italic.

Apache POI Word Styling Example

Output:

Apache POI Word Style

You may also like