Resizing the frame - account for borders
in
Programming Questions
•
5 months ago
Hi ,
I am trying to resize the frame after an image load to fit the image.
I am already using
- size(img.width, img.height);
- frame.setSize(img.width, img.height);
I found this in the java reference
http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html
which talks about the inset measurement which is the border dimensions.
My question is how would I use this in processing?
Is it usable in processing?
Is there a better way to resize a window?
1