//Program to illustrate the use of set Background and set foreground
//functions.
import java.awt.*;
import java.applet.*;
/*
<applet code=applet3 width=300 height=200>
</applet>
*/
class applet3 extends Applet{
public void init()
{
setBackground(Color.lightGray);
setForeground(Color.red);
}
public void paint(Graphics g)
{
g.drawString("Status applet",50,50);
showStatus("Applet status");
}
}
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 set background and set foreground Functions

 

 

 

 

 

 

 

 

 

                                                                                                                                          

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