"Cannot coerce value '2' into type: interface javax.swing.border.Border"
I tried using the expression for a border appear depending on a condition and I get the above error message. Any idea on how to avoid this error???
"Cannot coerce value '2' into type: interface javax.swing.border.Border"
I tried using the expression for a border appear depending on a condition and I get the above error message. Any idea on how to avoid this error???
Show us the expression. Please see Wiki - how to post code on this forum.
You can't use a number for a border. You must use the toBorder() expression function.
how do i include a tag in it? i seen several example with a tag in toBorder() expression function and tried but not working
What's the tag supposed to do? Can you give me a general description of the conditions, component, and desired border outcome?
Make a custom property and bind the tag to that. Then use that property in the toBorder()
expression.
Looks like you're trying to coerce "2"
to a border instead of 2
but also ^