I am trying to create a paragraph, with two portions.
One portion should be italic and have yellow background. The other should have green color and bold background.
So far, I have been only able to set the text color of each Portion. But I am not able to set the background color for a Portion. Nor have I been able to find any document/material on the same.
IPortion p = new Portion(“hello”)
//set text color
p.getPortionFormat().getFillFormat().setFillType(FillType.Solid); p.getPortionFormat().getFillFormat().getSolidFillColor().setColor(convertTextColorToJavaAWT(e.textColor));
How to set background color?
Can you please advise or point me to proper documents.