There is nothing wrong with that code.
I don't know why your sketch's window is not being getting set to the requested size.
Are you drawing anything in the sketch window?
I nailed it. The example from openProcessing.org come with two folders inside the sketch folder. One with the data, and the second one, "code", which is normally reserved for the .jar of a contributed library. In this case, it contains "core.jar", which are in conflict with your command size(). Get rid of this folder and your problem is solved.
One suggestion. We should renamed this discussion «Preview window is 100x100» to «Preview window is stuck at 100x100», or something similar. So it will be more useful if someone have a similar question in the future.
Answers
There is nothing wrong with that code. I don't know why your sketch's window is not being getting set to the requested size. Are you drawing anything in the sketch window?
for example http://openprocessing.org/sketch/57578 same . 100x100 but size set to 423, 587
Are you having this problem running the sketch from the Processing IDE?
yes
I nailed it. The example from openProcessing.org come with two folders inside the sketch folder. One with the data, and the second one, "code", which is normally reserved for the .jar of a contributed library. In this case, it contains "core.jar", which are in conflict with your command size(). Get rid of this folder and your problem is solved.
One suggestion. We should renamed this discussion «Preview window is 100x100» to «Preview window is stuck at 100x100», or something similar. So it will be more useful if someone have a similar question in the future.