I have coded a simple program and would like to see if I can put it on a webpage so others can try it, but after following the guides on java.sun I still get the "Applet notinited" problem. I have looked for solution on the Internet but I just don't get it.
Where could I possibly go wrong? I have even tried the example code on sun.java:
package betaTest;
import javax.swing.JApplet;
import java.awt.Graphics;
/**
*
* @author Raymond
*/
public class testApp extends JApplet {
@Override
public void paint(Graphics g) {
g.drawRect(0, 0,
getSize().width - 1,
getSize().height - 1);
g.drawString("Hello world!", 5, 15);
}
}
And in the web page source I've written:
<html> <body> <applet code=testApp.class width="200" height="200"> </applet> </body> </html>
Did I miss anything or do anything wrong?
Thanks for help > <"

New Topic/Question
Reply




MultiQuote





|