# Button background color scripting name

**URL:** <https://forum.inductiveautomation.com/t/button-background-color-scripting-name/11779>\
**Category:** Ignition\
**Created:** [June 6, 2016, 3:44am UTC](https://forum.inductiveautomation.com/t/button-background-color-scripting-name/11779 "2016-06-06T03:44:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [June 6, 2016, 3:44am UTC](https://forum.inductiveautomation.com/t/button-background-color-scripting-name/11779/1 "2016-06-06T03:44:14Z")

</div>

In the manual and the mouseover text the scripting name of the button component background color is ‘buttonBG’ it is actually ‘background’

Ignition 7.8.2

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 6, 2016, 2:32pm UTC](https://forum.inductiveautomation.com/t/button-background-color-scripting-name/11779/2 "2016-06-06T14:32:46Z")

</div>

Yes, the manual needs to be corrected, unfortunately, it’s not a simple correction.

The correct thing to use is actually getButtonBG(), not the .background property or the getBackground() function. (And if you’re setting the background color, use setButtonBG(Color c) ). The reason you should use getButtonBG() is that we do some extra checks and type conversions that are needed because of some oddities in the Java look-and-feel that we use. Unfortunately, it looks like the auto generation on the docs see these getters and setters and assume there’s a property by the name of .buttonBG, which isn’t the case.

In general, on all components it’s better to use the getters and setters than to manipulate properties directly.
