# Implementing windowed to fullscreen mechanics

**URL:** <https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846>\
**Category:** Coding Questions\
**Created:** [July 27, 2024, 7:37am UTC](https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846 "2024-07-27T07:37:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 28, 2024, 7:30am UTC](https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846/4 "2024-07-28T07:30:43Z")

</div>

> [@The package “processing.core.PSurfaceAWT” does not exist](https://discourse.processing.org/t/the-package-processing-core-psurfaceawt-does-not-exist/44844/11):
>
> Hi @winterchan, here’s something to tinker with. hope that helps … Cheers — mnse import processing.awt.\*; import javax.swing.\*; import java.awt.\*; import java.awt.Dimension; import java.awt.GraphicsEnvironment; import java.awt.GraphicsDevice; GraphicsDevice device; JFrame frame; Dimension prevDimension; Rectangle bounds; int mode = 0; void setup() { size(500,500); frame=(JFrame) ((PSurfaceAWT.SmoothCanvas)getSurface().getNative()).getFrame(); prevDimension = ((PSurfaceAWT.SmoothCanvas…

---

_[View the full topic](https://discourse.processing.org/t/implementing-windowed-to-fullscreen-mechanics/44846)._
