Question regarding resizable functions!

Hi,
I know there is draggable resizable function in JUCE, I was wondering if there was code where I can create two or more differetn set window sizes and implement it in a button for the user to select.
basically a button that contains other sizes I can select for better choices for users on different screen sizes.
Thanks in advanced

you can easily write this code. Just have your button(s) call your MainComponent’s setSize() function. This will automatically call resized().