# Desktop Resize and Location

**URL:** <https://forum.inductiveautomation.com/t/desktop-resize-and-location/50494>\
**Category:** Ignition\
**Tags:** vision, ignition81, scripting\
**Created:** [August 31, 2021, 7:21pm UTC](https://forum.inductiveautomation.com/t/desktop-resize-and-location/50494 "2021-08-31T19:21:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 31, 2021, 9:18pm UTC](https://forum.inductiveautomation.com/t/desktop-resize-and-location/50494/2 "2021-08-31T21:18:06Z")

</div>

This should give you a start:

> [@Max Window size in different monitors](https://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/desktop-resize-and-location/50494)._
