Applet

 
More
 
More
 4th Dec 2007 08:58:48 AM

shivbaba  
 
 applet
 

what do u mean by applet?

where u will use thisone and how it is use?

if possible give me one sample programe which applet is using with another area mean like jdbc or servlet?

 

 

thank u

 
More
 
  # 31st Jan 2008 04:35:10 AM

booma  
 
 

In java they are two ways of programming.

1.Application.

2.Applet.

Applet:

Applet can run in the internet browser.

Here it doesnt requires the main()  (i.e public static void main(String args[]).

basic applet:

1) Import necessary package.

import java.applet.*;

import java.awt.*;

2) public class Applet1 extends Applet{
   
    /** Creates a new instance of Applet1 */
    public Applet1() {
    }


 3)   // inserting the html code  with applet at the first time..
    public void init()
    {
       
    }
   4) // this method called wen the enter the html everytime wit applet.
    public void start()
    {
       
    }
    //destory the page...
5)    public void stop()
    {
       
    }
    // need to paint in applet...
    //overides the method..
   6) public void paint(Graphics g)
    {
       
    }

   
}

 

 

 

 

 

 
More
Newsletter
Copyright © 2013 VisualBuilder. All rights reserved

Warning: Unknown(): write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0