Published by : venky8542

Persistence in Java Beans
Persistence in Java Beans

Persistence : Enables a bean to save and restore its state . Once you change bean propertie, you can save the state of bean and can restore that bean later. Menus : SAVE SERIALIZE COMPONENTS MAKE APPLET LOAD LOAD JAR PRINT CLEAR EXIT CUT COPY PASTE REPORT EVENTS BIND PROPERTY : Lists all selected bean bound properties, methods.

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.*;…

Java Applets

Applets are programs that can be downloaded from a foreign machine through a network and executed on a local machine. Applets are not controlled by local operating system Applets are split into small packets called bytecode and travel across the network . These bytecodes are reassembled at receiving machine of the network by the JVM  and executed by the browser.…