Lightweight and Heavyweight components
I just have a really quick question about using Lightweight (most Swing components) and Heavyweight (all AWT components?) together, or in other words using Swing and AWT together. I have heard and read that doing this is bad, I'm not entirely sure why but it seems to have something to do with most Swing components being lightweight and "borrowing" a screen resource from there ancestor. I'm probably wrong though. Anyway I was just wondering if using a JFrame to simply hold a Canvas would cause problems. I'm thinking it wont since a JFrame is a heavyweight component, but I'm not sure because I only recently read/heard mixing AWT and Swing can cause problems. I'm not noticing any but I thought I would get an opinion from someone who knows more about these things than I do.