Cleaning up AwtPanels

Hi!

I’m playing around with AwtPanels and Swing. I’d like to be able to add and remove them on demand. I understand how create and initialize an AwtPanel. However I can’t figure out how properly clean up after I close one.

There is a attachTo() method but I can’t find detach() or anything similiar.

Thanks for any help :slight_smile:

Why not just detach it and keep it in a pool/ reuse the same?
As you are probably aware, multiple applicaition at the same time wont work anyway good (as lwjgl is incapable of that)

It doesn’t feel right :confused:
But I guess I’ll do just that.

Thanks.