This is my code, But I only want the darker gray area in the picture, however, it seems that the default height of the processing window is 100. so that I can not shrink it anymore, is there anyone knows how to solve it?
I met some problems using P2D, is there any JAVA2D version? I guess the problem is something related to my setup, I am using mac mojave. I get warnings when I use P2D out of nowhere.