# How to highlight/select the text in a TextEditor in an AlertWindow?

**URL:** <https://forum.juce.com/t/how-to-highlight-select-the-text-in-a-texteditor-in-an-alertwindow/20028>\
**Category:** General JUCE discussion\
**Created:** [November 24, 2016, 5:23am UTC](https://forum.juce.com/t/how-to-highlight-select-the-text-in-a-texteditor-in-an-alertwindow/20028 "2016-11-24T05:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [November 24, 2016, 7:26pm UTC](https://forum.juce.com/t/how-to-highlight-select-the-text-in-a-texteditor-in-an-alertwindow/20028/5 "2016-11-24T19:26:12Z")

</div>

Is there a way to do this without using a Timer callback? I’d really like to not fragment my code just to highlight this text.

---

_[View the full topic](https://forum.juce.com/t/how-to-highlight-select-the-text-in-a-texteditor-in-an-alertwindow/20028)._
