# Determining window size

**URL:** <https://forum.inductiveautomation.com/t/determining-window-size/2525>\
**Category:** Ignition\
**Created:** [January 18, 2011, 6:53pm UTC](https://forum.inductiveautomation.com/t/determining-window-size/2525 "2011-01-18T18:53:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [January 18, 2011, 9:50pm UTC](https://forum.inductiveautomation.com/t/determining-window-size/2525/5 "2011-01-18T21:50:54Z")

</div>

Sure, thats no problem.

[code]from java.awt import GraphicsEnvironment

env = GraphicsEnvironment.getLocalGraphicsEnvironment()  
screen = env.getDefaultScreenDevice()  
size = screen.getDefaultConfiguration().bounds  
print “The main screen is %dx%d” % (size.width, size.height)[/code]

You can get the screen size of any other monitors too by looping through the results of [tt]env.getScreenDevices()[/tt]

---

_[View the full topic](https://forum.inductiveautomation.com/t/determining-window-size/2525)._
