# How to restrict the mouse operation within popup window

**URL:** <https://forum.inductiveautomation.com/t/how-to-restrict-the-mouse-operation-within-popup-window/27794>\
**Category:** Ignition\
**Created:** [August 27, 2019, 11:57am UTC](https://forum.inductiveautomation.com/t/how-to-restrict-the-mouse-operation-within-popup-window/27794 "2019-08-27T11:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 27, 2019, 12:26pm UTC](https://forum.inductiveautomation.com/t/how-to-restrict-the-mouse-operation-within-popup-window/27794/2 "2019-08-27T12:26:22Z")

</div>

The behavior you are describing is generically called a _ **modal** _ window. (By generically, I mean across all GUI programming platforms, not solely Ignition.) Unfortunately, Ignition's architecture makes this rather difficult to implement. This thread has the most comprehensive options for you:

> [@Modal Pop-Up How-To?](http://forum.inductiveautomation.com/t/modal-pop-up-how-to/15211/10):
>
> Alright, who is ready for some hacking? This might get complicated, but here is how I have achieved this in the past. As an example, I will use my custom lock screen, attached in this post. Here is the script. def lockScreen(): from javax.swing import SwingUtilities,JFrame #Import some stuff import system.nav if system.util.getGlobals().has\_key('lockScreen'): #Check if the screen has been locked before. This really just saves the set up code system.util.getGlobals()["app"].getRootPane…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-restrict-the-mouse-operation-within-popup-window/27794)._
