Hello
For some times already I work on my game and I used to do all my painting on a JPanel that I put in a JFrame. Lately, I was trying to improve the quality of my rendering so I look for some way to do Double Buffering and I finish using BufferStrategy.
The first problem I encounter was that the JPanel deosn’t seems to support the use of BufferStrategy (at least I didn’t find how). So, I look for another Component to do my painting and use the Canvas as suggest on the tutorial there : http://www.cokeandcode.com/spaceinvaderstutorial. The result was very good.
Unfortunately, I use the JPanel to create a user interface above the graphics and I don’t think I can do the same thing using Canvas.
So, the final question is : is there an all win Component where I can do my painting using BufferStrategy for improved rendering and make a GUI above it like in a JPanel?? or is there a better way to do a user interface??