# G4P: GTextField text modification

**URL:** <https://discourse.processing.org/t/g4p-gtextfield-text-modification/12292>\
**Category:** Libraries\
**Created:** [June 26, 2019, 3:06am UTC](https://discourse.processing.org/t/g4p-gtextfield-text-modification/12292 "2019-06-26T03:06:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![graysonh](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@graysonh](https://discourse.processing.org/u/graysonh)\
**Post date:** [June 26, 2019, 11:22pm UTC](https://discourse.processing.org/t/g4p-gtextfield-text-modification/12292/8 "2019-06-26T23:22:40Z")

</div>

In this [thread](https://discourse.processing.org/t/cant-handle-the-loop/3375/8) a similar issue is discussed. I modified my code so the color changes based on if it meets the regex or not. If there is a solution that would allow setText to work while the GTextField has focus I would really like to know about it.

---

_[View the full topic](https://discourse.processing.org/t/g4p-gtextfield-text-modification/12292)._
