I'm new to JOpenDocument and the documentation is somewhat lacking. I know there has to be a way to assign a paragraph a style so that it can be bold, and things of that nature, but I can't figure out how. Here is my code, does anyone have any ideas?
File outFile = new
File("c:\\out.odt");
ODPackage p = new ODPackage( outFile );
ODSingleXMLDocument doc = p.toSingle();
//Create style
StyleStyle s = new StyleStyle();
s.setStyleName( "one" );
final Paragraph paragraph = new Paragraph( );
paragraph.addContent( "Test to insert" );
doc.add(paragraph);
doc.saveAs( outFile );