# Make window read only

**URL:** <https://forum.inductiveautomation.com/t/make-window-read-only/41399>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 10, 2020, 7:28pm UTC](https://forum.inductiveautomation.com/t/make-window-read-only/41399 "2020-12-10T19:28:56Z")\
**Posts on this page:** 1\
**Showing post:** 19

<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:** [December 10, 2020, 9:19pm UTC](https://forum.inductiveautomation.com/t/make-window-read-only/41399/19 "2020-12-10T21:19:27Z")

</div>

Back to your original question:

Consider scripting around the window's Glass Pane. Similar to Kyle's solution to the Modal Window problem....

> [@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…

.... but adding a glass pane to the specific Vision Window, not the whole client application. No clicks will get through to the components of that window. Unfortunately, this is not available at the _container_ level.

Vision windows are type [FPMIWindow](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/factorypmi/application/FPMIWindow.html), which inherit from JInternalFrame, which is why they can have a glass pane layer above everything else.

---

_[View the full topic](https://forum.inductiveautomation.com/t/make-window-read-only/41399)._
