# Change Windowed/Fullscreen Mode Dynamically

**URL:** <https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265>\
**Category:** Ignition\
**Created:** [April 19, 2019, 8:32pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265 "2019-04-19T20:32:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![plarochelle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plarochelle/32/29608_2.png) [@plarochelle](https://forum.inductiveautomation.com/u/plarochelle)\
**Post date:** [April 19, 2019, 8:32pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/1 "2019-04-19T20:32:13Z")

</div>

Does anyone know of a way to switch a currently running application between ‘Fullscreen’ or ‘Windowed’ mode? I’m thinking something like system.util.retarget() to itself may work but couldn’t find the proper parameter for it.

Thanks,  
Pete

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 19, 2019, 8:44pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/2 "2019-04-19T20:44:21Z")

</div>

Unfortunately, it’s not really possible to do this - fullscreen and windowed modes are fundamentally different from the moment they launch, down to the actual “main” java class that’s executed.

---

<div class="post-metadata">

**Author:** ![samngeru](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samngeru/32/6007_2.png) [@samngeru](https://forum.inductiveautomation.com/u/samngeru)\
**Post date:** [April 19, 2019, 10:36pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/3 "2019-04-19T22:36:42Z")

</div>

You can always add a minimize button to your full screen windows. Don’t know if that’s what you’re looking for but the code is below. The code below was placed on the actionPerformed event of a button component.

```auto
from javax.swing import JFrame
from org.python.core import Py
win = system.gui.getParentWindow(event)
while not isinstance(win,JFrame):   
   win = win.getParent()
javaWin = Py.tojava(win,JFrame)
javaWin.setState(JFrame.ICONIFIED)

```

---

<div class="post-metadata">

**Author:** ![plarochelle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plarochelle/32/29608_2.png) [@plarochelle](https://forum.inductiveautomation.com/u/plarochelle)\
**Post date:** [April 22, 2019, 6:30pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/4 "2019-04-22T18:30:06Z")

</div>

Thanks Sam. We’ll give that a try and let you know how it goes.

---

<div class="post-metadata">

**Author:** ![AkshayP](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@AkshayP](https://forum.inductiveautomation.com/u/AkshayP)\
**Post date:** [November 9, 2020, 9:20pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/5 "2020-11-09T21:20:06Z")

</div>

Hi @paul-griffith,  
It’s been more than a year when your comment says that this is not possible to do. Is it now possible to do it? If not then is there a plan to launch an update for this and what’s the timeline?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 9, 2020, 9:26pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/6 "2020-11-09T21:26:21Z")

</div>

No, it’s still not possible to do this, and there are no plans to introduce the capability. Fullscreen mode is fundamentally different (in terms of technical implementation), so the best case scenario we could implement would require the application window completely disappearing to be replaced by another application window instance entirely - which would almost certainly not be seamless with regard to component focus, binding state(s), incomplete text entered into fields, etc.

If you submit a feature request to the [ideas](http://ideas.inductiveautomation.com) portal, we can gauge community interest and see whether that decision might change, but right now there are zero plans (short or long term) to re architect Vision to support this functionality.

---

<div class="post-metadata">

**Author:** ![AkshayP](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@AkshayP](https://forum.inductiveautomation.com/u/AkshayP)\
**Post date:** [November 9, 2020, 9:51pm UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/7 "2020-11-09T21:51:24Z")

</div>

Thank you for the reply. Have suggested the idea in the portal. Hope something comes up soon!!

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [November 10, 2020, 5:08am UTC](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265/8 "2020-11-10T05:08:33Z")

</div>

Depending on your application, something like this may do what you're looking for. It removes/adds the window frame and title bar at runtime, giving you the effect of fullscreen and windowed modes.

> [@Max Window size in different monitors](http://forum.inductiveautomation.com/t/max-window-size-in-different-monitors/32030/3):
>
> Do you mean full screen mode where the window fills the whole screen with no title bar? If so, the code below on a button will swap the desktop the button is contained in between full screen and windowed modes. from javax.swing import JFrame window = system.gui.getParentWindow(event) while not isinstance(window, JFrame): window = window.getParent() if window.isUndecorated(): # Switch to windowed mode. window.dispose() window.setUndecorated(False) window.setExtendedState(JFrame.NORMAL) #…
