Answer Posted / akansha
Here is the java code of program :
import java.applet.*;
import java.awt.*;
public class FirstApplet extends Applet{
public void paint(Graphics g){
g.drawString("Welcome in Java Applet.",40,20);
}
}
Here is the HTML code of the program:
<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="FirstApplet.class" WIDTH="800"
HEIGHT="500"></APPLET>
</BODY>
</HTML>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Who found java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Is jdk required on each machine to run a java program?
What is floor math?
What is the effect of keeping a constructor private?
What is the use of bufferedreader?
How do you do absolute value in java?
What is difference between string and new string?
What is data type modifier?
Can you start a thread twice in Java?
Explain java coding standards for variables ?
What are dot operator queries?
What is bool mean?
What data type is a string?
Is there any tag in htm to upload and download files?