Changing the display type of a label

The display type of a label can be changed, that is to say, you can map the label to another value or image to be displayed instead.

JReport provides 13 kinds of display types: text, image, barcode, rank, text field, hidden field, text area, checkbox, radio button, image button, button, list, and drop-down list.

To change the display type of a label:

  1. Right-click the label and select Display Type to open the Display Type dialog.
  2. In the Type box, select the required type.
  3. Set the options for the selected type in the Web Options panel.
  4. Click the OK button to close the dialog.

A label can be displayed as one of the following general types:

Note: The display type of a label can also be changed to a web control, including text field, hidden field, text area, checkbox, radio button, image button, and button. A label cannot be displayed as list or drop-down list. For details about how to make settings of these display types, see Using basic web controls.