# Labels and styles

**URL:** <https://forum.inductiveautomation.com/t/labels-and-styles/4160>\
**Category:** Ignition\
**Created:** [March 16, 2012, 10:28pm UTC](https://forum.inductiveautomation.com/t/labels-and-styles/4160 "2012-03-16T22:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [March 16, 2012, 10:28pm UTC](https://forum.inductiveautomation.com/t/labels-and-styles/4160/1 "2012-03-16T22:28:38Z")

</div>

On a map, labels are used to indicate certain districts. The user can click on the label to swap in a screen with details of the district. Also, when the user hovers over the label it switches color. The problem is that if the user clicks on the label an error occurs

“File “event:mouseClicked”, line 12, in ? TypeError: can’t set arbitrary attribute in java instance: hovvercolor”

Basically the mouse click event swaps the screens and sets the label color back to white. That’s the issue, the style driver “hovvercolor” gets set to 0 then the error occurs. Strange because there is one label that is setup exactly the same as the others and the error does not occur.

---

<div class="post-metadata">

**Author:** ![Joseph\_Mendonca](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@Joseph\_Mendonca](https://forum.inductiveautomation.com/u/Joseph_Mendonca)\
**Post date:** [March 16, 2012, 10:49pm UTC](https://forum.inductiveautomation.com/t/labels-and-styles/4160/2 "2012-03-16T22:49:36Z")

</div>

spelling issue here. my oops

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 19, 2012, 11:09pm UTC](https://forum.inductiveautomation.com/t/labels-and-styles/4160/3 "2012-03-19T23:09:58Z")

</div>

Yep. Those get you all the time. 🙂
