Can I temporarily switch jogl canvas off and on

I am doing 3D game where I need 2d menus between different levels (like in Thief 2 or in warcraft III or In any game actually).

I want to use swing components because I don’t want to do comboboxes, buttons etc myself (I don’t have time enough for that). So I think I need to switch jogl canvas off and render on frame or something in those menus. Is there some recommended way to do this?

Quite easy solution for that would be to use GLJPanel and have swing components on it but it’s slow by default and I would need to turn opengl TRUE and directX FALSE on my windows machine using some commandline vbscript or something (of course I could make application to do it somehow in the beginning when I execute it), so I would rather do it some other way. :persecutioncomplex:

Can’t you just turn it invisible and visible again?
setVisible(true/false)?

Thank’s for your reply.

That could work. I must try it.