Applet not displaying from appletviewer

1.1k Views Asked by At

When i run the Main00App.java from appletviewer i have Start: applet not initiated. The commented html is read because i can resize the window using the width and height.

import java.awt.*;
import java.applet.*;

/*
<applet code="Main00App.class" width=200 height=150>
</applet>
*/

public class Main00App extends Applet {

public void paint(Graphics g) {
    g.drawString("Java applet", 10, 20);
}

}
1

There are 1 best solutions below

0
Sunil On

I think so that you need to run following program by command line using the applet viewer:

appletviewer Main00App.java 

I had run the following program. It works for me.