0

import java.awt.*;
import javax.swing.*;
/*<applet code="SampleApplet1",200,300>
*/

public class SampleApplet1 extends JApplet
{
int num;
public void init()
{
num=20;
}

public void paint(Graphics g)
{
g.drawString("Hello to Applets.Session"+num,70,80);
g.showStatus(getAppletInfo);
}

public int getAppletInfo()//Overrides super class method
{
return("Created by PTSS");
}

public static void main(String arg[])
{
SampleApplet1 obj= new SampleApplet1();
obj.init();
System.out.println("Application Main");
}
}


there was an error plez help me..

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by rushikesh jadha
0

import java.awt.*;
import javax.swing.*;
/*<applet code="SampleApplet1",200,300>
*/

public class SampleApplet1 extends JApplet
{
int num;
public void init()
{
num=20;
}

public void paint(Graphics g)
{
g.drawString("Hello to Applets.Session"+num,70,80);
g.showStatus(getAppletInfo);
}

public int getAppletInfo()//Overrides super class method
{
return("Created by PTSS");
}

public static void main(String arg[])
{
SampleApplet1 obj= new SampleApplet1();
obj.init();
System.out.println("Application Main");
}
}


there was an error plez help me..

Care to explain what the error was ? was it a runtime error or compilation error? what does the error message say?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.