title: How to handle window size for GraphicsProgram (ACM library)?
body: <p>I want to define the size of the window, but I did not find a clean way to do it. SetSize() gives a strange result:</p>
  
  <pre><code>public class Test extends GraphicsProgram {
  
      public void run() {
  
          setSize(400, 600);
          add(new GLabel("Width: " + getWidth(), 30, 30));
          add(new GLabel("Height: " + getHeight(), 30, 50));
      }
  
  }
  </code></pre>
  
  <p>The result is 384 x 542. The gap is always the same (-16 x -58), so it's easy to build a work around. Is there a way to define the size in useful pixels directly?</p>