# 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:** 1\
**Showing post:** 8

<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) #…

---

_[View the full topic](https://forum.inductiveautomation.com/t/change-windowed-fullscreen-mode-dynamically/24265)._
