Answer the question
In order to leave comments, you need to log in
How to embed applet in html in IDEA?
Hello, there is an html file in the /helloworld folder
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MyTittle</title>
</head>
<body>
<object code="HelloWorld.class" width=300 height=250/>
</body>
</html>
import javax.swing.*;
import java.awt.*;
public class HelloWorld extends JApplet {
public void paint(Graphics g){
g.drawString("Hello World", 50, 100);
}
}
Answer the question
In order to leave comments, you need to log in
<applet code="HelloWorld" width=300 height=250/>
I don't remember exactly.
Applets are dead, no one uses them, and almost all browsers have officially abandoned support for the corresponding plugins.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question