I havn't tested it on our real applets yet but I think it will work. Here's what you do: Add the JApplet's contentPane to the JInternalFrame instead of the applet itself. The getContentPane() returns a container object. JComponent extends Container. Therefore the contentPane is lightweight!
I tested my theory with a very simple class extending JApplet. The applet has one button on it that System-outs some simple text. It worked! It cleared up the flickering also.
posted 16 years ago
Update: You may also use the JRootpane to do the same thing. This will give you a few things where the content pane would not. GlassPane, ContentPane (Container object) and JMenuBar are contained within the JRootpane.