public void reshape(final GLAutoDrawable drawable, final int x, final int y,
final int width, final int height) {
// change viewport dimensions
final GL2 gl = (GL2) drawable.getGL();
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL2.GL_PROJECTION);
gl.glLoadIdentity();
this.glu.gluOrtho2D(0, width, height, 0);
gl.glMatrixMode(GL2.GL_MODELVIEW);
}