Jump to content

Displaying textField when not null


Recommended Posts

I have a text field with a yellow background and red font that I would like not to display when it is null.  By not displaying, I mean that I don't want the yellow background to display:

The XML for this field is attached:




<textField>    <reportElement mode="Opaque" x="148" y="14" width="507" height="24" forecolor="#F00000" backcolor="#F8F800"/>    <textElement textAlignment="Center">     <font size="14"/>    </textElement>    <textFieldExpression class="java.lang.String"><![CDATA[$F{NODIFFMESS}]]></textFieldExpression> </textField>
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 6 years later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...