# GUI Rescaling Issues

**URL:** <https://discourse.processing.org/t/gui-rescaling-issues/35150>\
**Category:** Libraries\
**Created:** [February 13, 2022, 6:11pm UTC](https://discourse.processing.org/t/gui-rescaling-issues/35150 "2022-02-13T18:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pcamund](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Pcamund](https://discourse.processing.org/u/Pcamund)\
**Post date:** [February 13, 2022, 6:11pm UTC](https://discourse.processing.org/t/gui-rescaling-issues/35150/1 "2022-02-13T18:11:05Z")

</div>

Hello! I’m fairly new with using processing and am attempting to find a way to properly rescale a GUI. I know setResizable() can be used to change the size of the actual window but it won’t change the size of any text or buttons. (As a note I am using controlP5 in this as well so the buttons/sliders need to respond properly to the size change). Essentially I just want to be able to change the size of the window and have the buttons/sliders respectively change size so that if someone with a larger screen resolution doesn’t see the GUI as a very small window with small buttons.

---

<div class="post-metadata">

**Author:** ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Post date:** [February 13, 2022, 8:09pm UTC](https://discourse.processing.org/t/gui-rescaling-issues/35150/2 "2022-02-13T20:09:15Z")

</div>

Hi @Pcamund and welcome. I have done this. In your draw() read the value of width and height, compare them with the values you stored last time. If they are different call a function called e.g. reSize. In there calculate the new positions of your controls. That’s the outline, try it and re-ask if you’re stuck.
