# Auto - Close Error Box

**URL:** <https://forum.inductiveautomation.com/t/auto-close-error-box/12786>\
**Category:** General Discussion\
**Created:** [March 14, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/auto-close-error-box/12786 "2017-03-14T17:31:45Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![pphillips](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pphillips](https://forum.inductiveautomation.com/u/pphillips)\
**Post date:** [July 7, 2020, 9:25pm UTC](https://forum.inductiveautomation.com/t/auto-close-error-box/12786/17 "2020-07-07T21:25:46Z")

</div>

Some time ago I had need for a suite of Java dialog boxes that would close after a time out, since the kiosk type client sessions were subject to being abandoned, and I didn’t want leftover dialog boxes hanging around for the next user. Admittedly, the most rock-solid way to do this is just make pop-up windows that contain timers to close themselves. However, I’ve used the attached Java dialog boxes with good success for quite a while now.

As-is, these require a boolean client tag “Dialog\_Box\_Open”.

[gui.py](https://forum.inductiveautomation.com/uploads/short-url/v4p05S2qJ3qsnOIQP4kGoWIKuUM.py) (6.7 KB)

---

_[View the full topic](https://forum.inductiveautomation.com/t/auto-close-error-box/12786)._
