To illustrate the use of param tag :
paramtest.java
import java.applet.*;
import java.awt.*;
public class paramtest extends Applet{
String yourname,yourplace,your;
Font F=new Font(“Arial”,Font.BOLD,40);
public void init(){
yourname=getParameter(“name”);
yourplace=getParameter(“place”);
if (yourname==null)
your=”friend”
else
your=”Welcome ”+yourname+” from “+ yourplace;
}
public void paint(Graphics g){
setBackground(Color.black);
setFont(F);
g.setColor(Color.red);
g.drawString(your, 20,20);
}
}
b.html file:
<html>
<applet code=”paramtest” width=300 height=100>
<align=”center”>
<param Name=name value=”bhavana”>
<param Name=place value=”New Delhi”>
</applet>
</html>
Home      |      About Us      |     Portfolio      |      Services      |      Courses      |     Career      |      Cost      |      Contact Us
Services
  SEO   
  Link Building
  Data Entry
  Web Design and development
  Web Application development
 

Graphic and multimedia

  E-Commerce Solutions
  Software development
  Web Marketing & Promoting
  Internet Marketing
  IT Outsourcing
  Multimedia/CD Presentation
  Synopsis Ideas
  Project Ideas
  Placement Papers
  Live Project Training
  Programming & Projects
  Faq
  Training @balujalabs
 
 
Method
 

To Illustrate the use of paramtay

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1 To Illustrate the Lifecycle of the Applet
2

To Illustrate the use of paramtay

3 To Illustrate the use of Param Tag
4 To illustrate the use of set background and set foreground Functions
5

To illustrate the use of set background and set foreground Functions