I have a text field that displays 3 parameters with different formats. It has a Date value, a BigDecimal value and a value that has to be displayed using percentage display.
Can I use a single text field for this or do I have to use one text field for each to have the correct format for each?
You have a few approaches, presuming it is one of the three parameters you want to display in the same location:
PrintWhenExpressionfor each parameter.The second approach is probably the most applicable for your task. For the conversions, look at:
See also:
Java: Literal percent sign in printf statement