اپلت در جاوا java.applet

  1. Java program can be set as an applet program if it extends applet class.
  2. the applet class present inside java.applet package.
  3. the applet program executes in a cyclic process, where it executes four different methods. 1-init  2-start  3-stop 4-destroy
  4. the process of executing this 4 methods is known a the life cycle process of applet and it starts from the applet loaded into the memory till destroy of the object is known as life cycle process of the object.
  5. init() method: the init() method is called by browser to inform the applet that it is loaded into the system.
  6. start(). with start methods executing the original service/execution of applet will start.
  7. stop(): the job of stop method is to stop the execution of an applet program.
  8. destroy(): destroy method delete all the resources that is reserved by applet.
  9. in HTML code we should use ".class" file of java. Example: <html>
    <applet code ="Demo.class" height = 600 width = 800>
    </applet>
    </html>


نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد