# Processing, button, void

**URL:** <https://discourse.processing.org/t/processing-button-void/11199>\
**Category:** Coding Questions\
**Created:** [May 13, 2019, 4:58pm UTC](https://discourse.processing.org/t/processing-button-void/11199 "2019-05-13T16:58:43Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 14, 2019, 9:19pm UTC](https://discourse.processing.org/t/processing-button-void/11199/10 "2019-05-14T21:19:21Z")

</div>

See also here

> [@How to display class button](https://discourse.processing.org/t/how-to-display-class-button/11181/5):
>
> But joseph is correct You make the objects in setup and say … a, 1 Look at the constructor: caption is now a, name 1 But then with switch, you eval the caption (wrong) and not the name. You should eval the name. Remark Besides, you don’t use the class / OOP correctly. You don’t use caption and x,y. The entire switch() is unnecessary See the tutorial: [https://www.processing.org/tutorials/objects/](https://www.processing.org/tutorials/objects/) Your sketch and a new sketch Here is your sketch, this time with a working switch() using n…

---

_[View the full topic](https://discourse.processing.org/t/processing-button-void/11199)._
