i m new to java...i made my first applet...a simple applet to showing "THIS IS MY FIRST APPLET"..but it's not working...i m not able to see it in mozilla firefox and IE7...
plz help..
the code is here...
tryApplet.java
import java.awt.Font;
import java.awt.Color;
import java.awt.Graphics;
public class tryApplet extends java.applet.Applet
{
Font f=new Font("Garamond",Font.BOLD+Font.ITALIC,30);
public void pain(Graphics g)
{
g.setFont(f);
g.setColor(Color.blue);
g.drawString("THIS IS MY FIRST APPLET....",10,40);
}
}
first.htm
<html>
<head>
<title>Testing Applet</title>
</head>
<body>
<p>
This is my first Applet<br>
<applet code="tryApplet.class" width=400 height=200>
THIS WILL BE PRINTED IF YOUR BROWSER DOES NOT SUPPORT JAVA
</applet>
</body>
</html>