FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1034 : calling frame.setSize() doesn't work
Last modified: 2008-11-21 05:56
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
WONTFIX -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Manic
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-11-21 05:39
You now have to call size() aswell to get it to work properly
setSize only changes the frame size, not the drawing area
boolean once;
void setup(){
size(200,200);
}
void draw(){
if(!once){
frame.setSize(1000,1000);
once=!once;
}
background(0);
}
Additional Comment
#1 From fry 2008-11-21 05:56
Use frame.setResizable(true) inside setup(), so that it knows the frame
resize call is legitimate.