private List<AttributedCharacterIterator> createFormattedLines(String text,Color textColor,int width){
  AttributedString formattedString=formatLine(text.trim(),textColor);
  return splitFormatted(formattedString,width);
}

private List < AttributedCharacterIterator > createFormattedLines ( String text , Color textColor , int width ) { AttributedString formattedString = formatLine ( text . trim ( ) , textColor ) ; return splitFormatted ( formattedString , width ) ; }
create formatted lines from a text .
