# Getting A Sketch's Window's Position

**URL:** <https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772>\
**Category:** Coding Questions\
**Created:** [August 18, 2021, 4:30am UTC](https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772 "2021-08-18T04:30:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 27, 2021, 9:27pm UTC](https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772/7 "2021-08-27T21:27:51Z")

</div>

Just adding a note for people deciding on whether to go the `getNative()` route: not only is it a renderer specific Object – a whatever-the-renderer-gives-us – but it could be subject to change. This is whimsically expressed in the Processing API documentation…

from [PSurface.getNative](http://processing.github.io/processing-javadocs/core/processing/core/PSurface.html#getNative--) :

> Get the native window object associated with this drawing surface. For Java2D, this will be an AWT Frame object. For OpenGL, the window. The data returned here is subject to the whims of the renderer, and using this method means you’re willing to deal with underlying implementation changes and that you won’t throw a fit like a toddler if your code breaks sometime in the future.

---

_[View the full topic](https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772)._
