# How to open a popup windows in a modal-style?

**URL:** <https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373>\
**Category:** Ignition\
**Created:** [September 30, 2011, 2:58pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373 "2011-09-30T14:58:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 30, 2011, 2:58pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/1 "2011-09-30T14:58:57Z")

</div>

how to open a popup windows in a modal-style ?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [September 30, 2011, 3:13pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/2 "2011-09-30T15:13:10Z")

</div>

You can’t create a true modal-style popup window where you can’t select anything else until the window is closed. However, you can set the layer of the window to a higher number which forces it to stay on top of any other window.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 30, 2011, 4:41pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/3 "2011-09-30T16:41:59Z")

</div>

[Here’s a topic](http://inductiveautomation.com/forum/viewtopic.php?f=23&t=3431) that covers this and keeps background controls from being “usable”

---

<div class="post-metadata">

**Author:** ![tduryee](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@tduryee](https://forum.inductiveautomation.com/u/tduryee)\
**Post date:** [October 3, 2011, 4:20pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/4 "2011-10-03T16:20:37Z")

</div>

mazzyrat,

In the event handler for the window, go to internalFrameActivate and enter the following:

```auto
from java.awt import Color
event.source.setOpaque(0)
```

Then add an opaque container in the style of a popup to that window.  
The user won’t be able to move it around without you adding some script to capture the mouse movements/coordinates, but it should achieve your main goal.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 3, 2011, 8:19pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/5 "2011-10-03T20:19:53Z")

</div>

where is the internalFrameActivate in ignition ?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [October 3, 2011, 8:24pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/6 "2011-10-03T20:24:40Z")

</div>

Select the window in the Project Browser and press Ctrl-J.

---

<div class="post-metadata">

**Author:** ![nathan](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nathan](https://forum.inductiveautomation.com/u/nathan)\
**Post date:** [October 3, 2011, 8:46pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-windows-in-a-modal-style/3373/7 "2011-10-03T20:46:51Z")

</div>

The shortcut Travis mentioned (Cntl-J) is the shortcut for Component-\>Event Handlers in the menu, which also gets you there when you have a window selected.

> [@mazeyrat](#):
>
> where is the internalFrameActivate in ignition ?
