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
What is bubble sorting in java?
Is passing by reference faster?
What are the difference between string, string builder, and string buffer in java?
What is incompatible types in java?
What is an object's lock and which object's have locks in java programming?
Variable of the boolean type is automatically initialized as?
Is vector synchronized in java?
Is there is any difference between a scrollbar and a scrollpane?
Can a hashset contain duplicates java?
Can we convert list to set in java?
What does a void function return?
How can we use primitive data types as objects?
Does string is thread-safe in java?
What is a jagged array in java?
What is a class component?