You need at least a current OpenGL context to get this information. We have the applet "Quick Version Info" that does what you want (and even more), there is no real JOGL canvas in it, only plain AWT components to display the information, you can find its source code on our Github repository.