Hi all.A simple question for a difficult answer (maybe). What is the best way to create a JCanvas? I mean in java.awt package there is the Canvas object but it is a Heavyweight object and it isn't a good idea to mix Lightweight objects with HW objs (do not respect the z-order). How can I do? I tried to create a new one which extends JComponent and implements some methods for the creation of a BufferStrategy, but I got some problems to show images (they blink).

Uuh... well I tried to use JPanel and it does not work with me, but it doesn't matter, I found the bug in my class... How can I check if a component has a peer or not? I mean when I create for example a JPanel obj and I add it in the pane of a JFrame obj, there is a way to check the ComponentPeer of JPanel?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org