Sun Java Solaris Communities My SDN Account Join SDN
 
Code sample

Applets Code Samples

 

Applets are small programs that run in a Java platform-enabled browser. The small program is embedded in a web page, and might connect to a server-side technology such as a J2EE server. However, because major browsers have not kept up with the latest releases of the Java 2 platform, you can either create applets with the JDK 1.1 API or use the Java Plug-in solution.

  • AccessApplet.javais an accessible applet. Accessibility technologies make the graphical components of a program's user interface available to screen readers, pointing devices, and other assistive technologies used by people with disabilities. For supporting information see What's New with Accessibility. Accessibility technologies make the graphical components of a program's user interface available to screen readers, pointing devices, and other assistive technologies used by people with disabilities.

  • HelloSwingApplet.java tests whether your browser can run Swing applets. For supporting information see The Java Tutorial: Writing Applets.

  • SlideShow.java downloads three thumbnail aintings by Claude Monet and draws them one-by-one on the applet's panel. For supporting information see Creating a Threaded Slide Show Applet.

  • writeFile.java shows how to run an applet securely with Java Web Start. For supporting information see Java Web Start to the Rescue

  • writeFile.java is another version of an applet that uses Java Network Launch Protocol (JNLP) to write to a user-selected file. The applet is run securely with Java Web Start. For supporting information see Java Web Start to the Rescue

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.