# How to get a reference to an FPMIWindow given a window path?

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-a-reference-to-an-fpmiwindow-given-a-window-path/17453>\
**Category:** Module Development\
**Created:** [March 21, 2018, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-to-get-a-reference-to-an-fpmiwindow-given-a-window-path/17453 "2018-03-21T20:35:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [March 21, 2018, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-to-get-a-reference-to-an-fpmiwindow-given-a-window-path/17453/1 "2018-03-21T20:35:25Z")

</div>

I’m new to module development and I’m trying to do a couple of things that I’ve done comfortably within the Python scripting environment, however in the new-to-me java environment I’m not sure how to do. What I’d like to do is to get an FPMIWindow object so that I can then get various components on the window. In Python, what I’m trying to do looks like this.

```auto
displayPath = "Main Windows/My Window"
window= system.gui.getWindow(displayPath)
container = window.getRootContainer()

```

In the Ignition SDK I’m not sure what the analog to the system.gui.getWindow() function is. Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [March 21, 2018, 10:04pm UTC](https://forum.inductiveautomation.com/t/how-to-get-a-reference-to-an-fpmiwindow-given-a-window-path/17453/3 "2018-03-21T22:04:14Z")

</div>

If you’re writing a component, you should have a VisionClientContext available to you, so you can do  
`VisionClientContext.getGuiUtil().getWindow(name)`
