Take a look at Javadocs:
extended by java.awt.Container extended by java.awt.Panel extended by java.applet.Applet
An applet is a panel, so you can add them to the frame. However, their initialization and invocation in Frame (or JFrame) are different. Here, by the way. JApplet version:
java.lang.Object extended by java.awt.Component extended by java.awt.Container extended by java.awt.Panel extended by java.applet.Applet extended by javax.swing.JApplet
If the applet code is yours, I would put all the interesting content in a JPanel and either use that JPanel in a JApplet or put it in a JFrame and use it as an application.
If this is not your (J) applet and you have no code, I would try adding them to the (J) panel in the (J) frame.
source share