# Make text print on screen before the dialog box comes?

**URL:** <https://discourse.processing.org/t/make-text-print-on-screen-before-the-dialog-box-comes/28670>\
**Category:** Beginners\
**Tags:** homework\
**Created:** [March 20, 2021, 2:25am UTC](https://discourse.processing.org/t/make-text-print-on-screen-before-the-dialog-box-comes/28670 "2021-03-20T02:25:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![resboy2445](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@resboy2445](https://discourse.processing.org/u/resboy2445)\
**Post date:** [March 20, 2021, 2:25am UTC](https://discourse.processing.org/t/make-text-print-on-screen-before-the-dialog-box-comes/28670/1 "2021-03-20T02:25:33Z")

</div>

How do i make a text print on the screen before the dialog box comes? i am supposed to make the text be on the screen, then when the user clicks on the screen the user will have to type in the dialog box what is on the screen, if they both match then “access granted” will be printed on the screen, if it doesn’t, then “access denied” will be on the screen.

i have gotten far but my problem is i am not able to print the text on the screen before the user enters the text in the dialog box. the first thing is the dialog box, not the text.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [March 20, 2021, 3:12am UTC](https://discourse.processing.org/t/make-text-print-on-screen-before-the-dialog-box-comes/28670/2 "2021-03-20T03:12:50Z")

</div>

Add a flag that activates instead of the dialogue button and then you can have more control.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 20, 2021, 10:51pm UTC](https://discourse.processing.org/t/make-text-print-on-screen-before-the-dialog-box-comes/28670/3 "2021-03-20T22:51:27Z")

</div>

Hello @resboy2445,

What are you using for dialogue boxes?

I don’t need to see code… I am just curious.
