answersLogoWhite

0


Best Answer

First of all, let's assume that by "lint" you mean "init."

There are two methods called at the beginning of an applet's lifetime:

Applet.init() - Called to tell the applet that it has been loaded into the system. You should use this method to initialize any resources used by the applet.

Applet.start() - Called to tell the applet that it should start running.

start() is always called after init()

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between start and lint method of applet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Lifecycle diagram of applet in java?

IntroductionIn this Section you will learn about the lifecycle of an applet and different methods of an applet. Applet runs in the browser and its lifecycle method are called by JVM when it is loaded and destroyed. Here are the lifecycle methods of an Applet:init(): This method is called to initialized an appletstart(): This method is called after the initialization of the applet.stop(): This method can be called multiple times in the life cycle of an Applet.destroy(): This method is called only once in the life cycle of the applet when applet is destroyed.init () method: The life cycle of an applet is begin on that time when the applet is first loaded into the browser and called the init() method. The init() method is called only one time in the life cycle on an applet. The init() method is basically called to read the PARAM tag in the html file. The init () method retrieve the passed parameter through the PARAM tag of html file using get Parameter() method All the initialization such as initialization of variables and the objects like image, sound file are loaded in the init () method .After the initialization of the init() method user can interact with the Applet and mostly applet contains the init() method.Start () method: The start method of an applet is called after the initialization method init(). This method may be called multiples time when the Applet needs to be started or restarted. For Example if the user wants to return to the Applet, in this situation the start Method() of an Applet will be called by the web browser and the user will be back on the applet. In the start method user can interact within the applet.Stop () method: The stop() method can be called multiple times in the life cycle of applet like the start () method. Or should be called at least one time. There is only miner difference between the start() method and stop () method. For example the stop() method is called by the web browser on that time When the user leaves one applet to go another applet and the start() method is called on that time when the user wants to go back into the first program or Applet.destroy() method: The destroy() method is called only one time in the life cycle of Applet like init() method. This method is called only on that time when the browser needs to Shut down.


Write a program to show the applet life cycle?

/*Applet Life Cycle ExampleThis java example explains the life cycle of Java applet.*/import java.applet.Applet;import java.awt.Graphics;/*** Applet can either run by browser or appletviewer application.* Define tag within comments as given below to speed up* the testing.*//**/public class AppletLifeCycleExample extends Applet{/** init method is called first.* It is used to initialize variables and called only once.*/public void init() {super.init();}/** start method is the second method to be called. start method is* called every time the applet has been stopped.*/public void start() {super.start();}/** stop method is called when the the user navigates away from* html page containing the applet.*/public void stop() {super.stop();}/* paint method is called every time applet has to redraw its* output.*/public void paint(Graphics g) {super.paint(g);}/** destroy method is called when browser completely removes* the applet from memeory. It should free any resources initialized* during the init method.*/public void destroy() {super.destroy();}}


Why main function is not used in applet programs?

Because an applet runs in a browser, and in this context the one in charge of the launch and execution of the applet is the Java Plug-in software in the browser. This plugin controls the applet life cycle through methods in our applet. These methods are init, start, stop and destroy. In this case the methods that the plugin search to begin the execution of the applet are init (to initialize itself) and start (to start the execution of the task in the applet).


How do you call repaint using thread in java applet?

You call the repaint method the same way you'd call any other method from a thread. final Applet appletToRepaint; new Thread() { public void run() { appletToRepaint.repaint(); } }.start();


What is difference between java applet and java Swing?

An applet is a Java program embedded in an HTTP document. When the HTTP document is loaded into a web browser, the Java program executes on the web. A widget = window gadget, a GUI (graphical user interface) control. A GUI control, such as a command button, is accessed by the user via a mouse click or by the keyboard. GUI programs can run on one's PC.


What applet would you use to hide the system clock?

Taskbar and Start Menu


What is the difference between earliest start time and latest start time?

i think the difference is how early can you start and in case you get late how late can you start


What is the difference between anger and adolescent violence?

When they start laughing at the victim.


What is the difference between EDT and MDT?

One has an E at the start and one has an M


What do you do to find the difference between two numbers?

Difference between two numbers is found by subtracting the first from the second. Start with 5 apples, End with 7 apples. The difference is 2 apples.


What is the difference between self start and electric start?

self start is done with electrical things.....such as battery.connected with d self motor ...the self motor..which will turns d barrings of d engine and makes to start easily... bt in kick start its is a manual thing directly done to d engine as a direct hit bt both the method kick & self start r same....nothing more than that..


What is the difference between likely event and an unlikely event?

One doesn't have *un* at the start.