# Cannot coerce value true into type: interface java.awt.Paint

**URL:** <https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488>\
**Category:** Ignition\
**Created:** [October 29, 2021, 9:52am UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488 "2021-10-29T09:52:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKA](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ska/32/29528_2.png) [@SKA](https://forum.inductiveautomation.com/u/SKA)\
**Post date:** [October 29, 2021, 9:52am UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488/1 "2021-10-29T09:52:03Z")

</div>

Hi, i am trying to change the color of a circle to show red instead of green when an active alarm is on,  
as you can see on the first picture, it toggles between black and green, if i double click the green and select red i get the error in the second picture.  
I am using ignition 8.1.0 **(b2021090812)**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c72200d4ef065848115342f6fe134b687604f5c.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/d/fd406d263cdaed6787f16f33d8f88898775052d1.png)

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [October 29, 2021, 11:17am UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488/2 "2021-10-29T11:17:37Z")

</div>

This seems to work for me on 8.1.10.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bf4ee9f9946753ade06bfa5d40be6d1f1bf1bde1.png)

---

<div class="post-metadata">

**Author:** ![SKA](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ska/32/29528_2.png) [@SKA](https://forum.inductiveautomation.com/u/SKA)\
**Post date:** [October 29, 2021, 11:21am UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488/3 "2021-10-29T11:21:15Z")

</div>

It must have been a bug in the designer, when i closed all designer and clients on my computer and relaunched the project, then i could change the color.

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [October 29, 2021, 12:23pm UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488/4 "2021-10-29T12:23:50Z")

</div>

I’m a bit curious for your reason to use 8.1.0?

---

<div class="post-metadata">

**Author:** ![SKA](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ska/32/29528_2.png) [@SKA](https://forum.inductiveautomation.com/u/SKA)\
**Post date:** [October 29, 2021, 12:27pm UTC](https://forum.inductiveautomation.com/t/cannot-coerce-value-true-into-type-interface-java-awt-paint/52488/5 "2021-10-29T12:27:08Z")

</div>

That is the version that was on download when i got it the other week or two ago.  
EDIT: and it should say 8.1.10
