| Java Applet |
Article Index for Java |
Website Links For Java |
Information AboutJava Applet |
| CATEGORIES ABOUT JAVA APPLET | |
| java platform | |
| applet | |
| java programming language | |
|
Applets are used to provide interactive features to web applications that cannot be provided by . Since Java's Bytecode is Platform Independent , Java applets can be executed by browsers for many platforms, including Windows , Unix , Mac OS and Linux .There are open source tools like applet2app which can be used to convert an applet to a stand alone Java application/windows executable. This has the advantage of running a Java applet in offline mode without the need for internet browser software. A Java Servlet is sometimes informally compared to be "like" a server-side applet, but it is different in its language, functions, and in each of the characteristics described here about applets. TECHNICAL INFORMATION A Java applet extends the class , or in the case of a Swing applet, . The class must override methods from the applet class to set up a user interface inside itself ( Applet is a descendant of which is a descendant of ).COMPATIBILITY ISSUES Sun has made a considerable effort to ensure compatibility is maintained between Java versions as they evolve. For example, Microsoft 's Internet Explorer , the most popular web browser since late 1990s, used to ship with Microsoft's own JVM as the default. The MSJVM had some extra non-Java features added which, if used, would prevent MSJVM applets from running on Sun's Java (but not the other way round). Sun sued for breach of Trademark , as the point of Java was that there should be no proprietary extensions and that code should work everywhere. Development of MSJVM was frozen by a legal settlement, leaving many users with an extremely outdated Java virtual machine. Later, in October 2001, MS stopped including Java with Windows, and for some years it has been left to the computer manufacturers to ship Java independently of the OS. Most new machines now ship with official Sun Java. Some browsers (notably Firefox ) do not do a good job of handling height=100% on applets which makes it difficult to make an applet fill most of the browser window ( Javascript can be used for this but its hard to get it perfect). Having the applet create its own main window is not a good solution either, as this leads to a large chance of the applet getting terminated unintentionally and leaves the browser window as a largely useless extra window. ADVANTAGES OF APPLETS A Java applet can have any or all of the following advantages:
DISADVANTAGES OF APPLETS A Java applet is open to any of the following disadvantages:
Though not strictly a disadvantage of Java applets, alternative technologies exist (for example, Ajax and Flash ) that satisfy much of the scope of what is possible with an applet. Another alternative to applets for client side Java is Java Web Start , which runs outside the browser. In addition to the features available to applets, a simple permissions box can give Java Web Start programs read and/or write access to specified files stored on the client, and to the client's clipboard. SEE ALSO EXTERNAL LINKS
|
|
|