I designed a Swing application last week. It creates a JLayeredPane that contains a JPanel painted with a road map. On this JPanel, it is possible to create other JPanel that contain small points simulating cars.
I'm not sure that my code is perfectly written, but it works. However, I decided to create a JApplet from that Swing Application.
I replaced the "extends JFrame" with "extends JApplet" and wrote a init() method in it instead of the main method.
The problem is that the only panel that I can see on my JApplet is the map. On the Java Console, I can see that my JPanels are created, but they don't appear...
I don't want to use ten pages to show you the whole code, I hope that you will understand what I tried to explain. If you need some specific parts, I can give them to you.