• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Applet problem

larva

Member
Hi,

My code is below :

Applet1.java :
-------------------------------------------------
import javax.swing.*;
import java.awt.*;

public class Applet1c extends JApplet {
public void init() {
getContentPane().add(new JLabel("Applet !"));
}

}
-------------------------------------------------
Applet1.html
-------------------------------------------------
<html><head><title>Applet1</title></head><hr>
<applet code=Applet1c width=100 height=50>
</applet>
</html>
-------------------------------------------------

No matter what I change in the Applet1.java code and I refresh the IE6 browser, it still remain the same. In addition, I type in appletviewer Applet1.java in console, nothing display. Please help, Thanks !

regards,
Larva



 
It works for me.

Did you remember to compile the Applet1c.java file? Did you install the Java Plug-in for IE?

In case you didn't make a typo, the command for appletviewer should be appletviewer Applet1.html.
 
Back
Top