JMECanvas always on top


I've got a Swing gui set up, with an Implementor in it showing me my gameworld. I'd like to overlay the canvas with a new JPanel, but the canvas hogs the toplevel. Is there anyway around this?



On most platforms you can use so-called heavyweight components to show stuff above the canvas. E.g. menus and toolstips can be done this way. I did not use it for a (custom) panel yet. But have a look if you can force it 'heavyweight' some way.

Btw. you should avoid doing this at all as it's quite platform dependent (it might work on Windows but not Mac or other way round).

Ok, I can work around it. Thanks for the reaction.