Java-Repeated Execution of Start and Paint

Repeated Execution of Start and Paint The init() method to be executed only once. But the start() method called every time whenever the execution of an applet is to be resumed. Program Prorgam Source import java.applet.Applet; import java.awt.Graphics; public class Javaapp extends Applet { String str = “”; public void init() { str+=”-init-“; } public void … Read more…

Java-Init and Start

Init The init( ) method is the first method to be called. The init( ) method is called by the browser when the applet begins execution. This method is called only once during the run time of your applet. start The start( ) method is executed after the init( ) method completes its execution. This method … Read more…