Skip to Main Content

About Java Applet.

TechGeek!Aug 28 2019 — edited Oct 3 2019

Hi there!,

          I am new to java and was trying to execute a Java Applet program.... but unfortunately it ended up with some error.

The Applet window successfully shown off but it had something written "start:Applet not initialized".

I don't know what exactly the problem is.......

Can any one guide me in finding the right solution for this.

--------------------------------------------------------------------------------------------------------

Error: Applet not initialized

Java code:-

import java.awt.*;

import java.applet.*;

class Hello extends Applet

{

public void paint(Graphics g)

{

g.drawString("Hey! This is Java Applet...What's up??",100,100);

}

}

HTML code:-

<!doctype html>

<html>

<head></head>

<body>

<Applet code="Hello" height=500 width=500></Applet>

</body>

</html>

I ran the above codes and encountered "Applet not Initialized" Error..... What changes should I make in my code??

Regards,

TG.

Comments
Post Details
Added on Aug 28 2019
2 comments
92 views