Java Applets

Java Beans
Java Beans

A Bean is a reusable java component. Beans is a software component that is designed¬†to be reusable in different environments and architectures. Beans allows us to build complex systems from software components Java ABT allows to combine components into applets, applications or composite components Allows to write component software in java lang. Bean can check spelling of document or forecast…

HTML Applet Tag in Java Technology
HTML Applet Tag in Java Technology

<APPLET [CODEBASE = codebase URL] CODE = appletfile [ALT = alternate text] [NAME = appletInstanceName] WIDTH = pixels HEIGHT = pixels [ALIGN = alignment] > [ <PARAM NAME = attribute name VALUE = attribute value>] </APPLET>

Applet skeleton in Java Technology
Applet skeleton in Java Technology

Applet skeleton : init() start() paint() stop() destroy() init() : first called – initialise variables here – called only once start(): called after init() – can be restarted. paint(): called each time applet is redrawn – also called when applet begin execution stop() : called when web browser leavs the HTML document you can call stop() suspend applet and restart…

Methods of Applet class in Java Technology
Methods of Applet class in Java Technology

Methods of Applet class: – void init() – void Destroy() – boolean isActive() – void play(URL url, String clipname) – void resize(dimension dim) – void showStatus(String str) – void start() – void stop() – String getAppletInfo() – URL getCodeBase() – URL getDocumentBase() – Image getImage(URL url,String imagename) – String getParameters(String paramname)

What are Java Applets ?
What are Java Applets ?

Applets are – Small programs – Accessed on Internet Server – Transported over Internet – automatically installed – run as part of web document Applet has limited access to resources, run complex computations without introducing the rist of virus or breaching data integrity. ¬†Applet class available in Applet package All applets are subclass of Applet class import java.awt.*; import java.applet.*;…