# Flash client window in taskbar

**URL:** <https://forum.inductiveautomation.com/t/flash-client-window-in-taskbar/21920>\
**Category:** Ignition\
**Created:** [January 16, 2019, 5:20pm UTC](https://forum.inductiveautomation.com/t/flash-client-window-in-taskbar/21920 "2019-01-16T17:20:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 16, 2019, 5:20pm UTC](https://forum.inductiveautomation.com/t/flash-client-window-in-taskbar/21920/1 "2019-01-16T17:20:16Z")

</div>

I’m using the messaging system to occasionally send clients a message to show the user. I was wondering if anyone had a way to make the window for this client flash in the taskbar, like some other applications do when they have some sort of notification or want to get your attention for whatever reason. When researching online for ways to do that in Swing, I see some suggestions for getting some library to do it (not worth it to go through that for me) and some saying use the Swing .toFront() or .requestFocus() on the top level window. I’ve done this (via SwingUtilities getAncestorWindow()) but unfortunately it isn’t working. Anyone know of a way to do this without adding any libraries?

---

<div class="post-metadata">

**Author:** ![nick.schuetz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick.schuetz/32/6160_2.png) [@nick.schuetz](https://forum.inductiveautomation.com/u/nick.schuetz)\
**Post date:** [January 16, 2019, 10:54pm UTC](https://forum.inductiveautomation.com/t/flash-client-window-in-taskbar/21920/2 "2019-01-16T22:54:01Z")

</div>

> [@How do I Make an Ignition appication get the focus?](http://forum.inductiveautomation.com/t/how-do-i-make-an-ignition-appication-get-the-focus/1630/3):
>
> Ok, to do this from a tag-change script is a little stranger, because you don’t have a very straight-forward hook into the windowing system. The following works, but relies on at least one window being open. This is a fairly good assumption, because a Vision client with no windows open is pretty useless. [code]from java.awt import Window from javax.swing import SwingUtilities allWindows = system.gui.getOpenedWindows() if len(allWindows)\>0: topWindow = SwingUtilities.getAncestorOfClass(Windo…

```auto
from java.awt import Window
from javax.swing import SwingUtilities

allWindows = system.gui.getOpenedWindows()

if len(allWindows)>0:
    topWindow = SwingUtilities.getAncestorOfClass(Window, allWindows[0])
    topWindow.toFront()

```
