It would be easier to just create a GLCanvas directly, as you don't seem to intend to use the GLCapabilities-there is a constructor that accepts no parameters.