Style a text field in JasperReports

Yes, you can apply style for textField elements. iReport using The sample of report’s template: <jasperReport ..> <style name=”ColoredField” style=”Default” forecolor=”#FF0000″> <conditionalStyle> <style/> </conditionalStyle> </style> … <detail> <band height=”52″ splitType=”Stretch”> <!–Using the style declared in this template–> <textField> <reportElement key=”textWithStyle” style=”ColoredField” mode=”Opaque” x=”0″ y=”10″ width=”100″ height=”20″/> <textElement/> <textFieldExpression><![CDATA[$F{TASKS_SERIES}]]></textFieldExpression> </textField> <!–Basic formatting (set font and indent) … Read more