I'm making a game in Java. I found this tutorial: http://www.gamedev.net/page/resources/_/technical/general-programming/java-games-active-rendering-r2418
It shows how to do active rendering. They use a Canvas to paint. I've been using JPanel's up until this point; however, I'd like to switch over to this method. Now, I have several JPanels and some JButtons added to the JPanels. I would like to know if I should switch over to java.awt.Button and java.awt.Panel instead so that I don't mix Swing and AWT Components.
On the other hand, in the tutorial the Canvas is inside a JFrame, so isn't that already mixing Swing and AWT? Is that okay?
Thanks.