Movatterモバイル変換


[0]ホーム

URL:


Documentation

The Java™ Tutorials
Home Page
« PreviousTrailNext »

The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
SeeDev.java for updated tutorials taking advantage of the latest releases.
SeeJava Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
SeeJDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

Trail: Deployment

Java rich internet applications (RIA) are applications that have traits similar to desktop applications, but are deployed via the Internet. Java RIAs may be developed and deployed as Java applets or Java Web Start applications.

Component-Based Architecture for RIAs

In the past, the decision of whether to deploy a Java rich internet application inside the browser as an applet, or outside the browser as a Java Web Start application, could significantly impact the design of the application. With the latest Java Plug-in, this decision has been greatly simplified.

Traditionally, applications construct their user interfaces, including the top-levelFrame, in themain method. This programming style prevents easy re-deployment of the application in the browser, because it assumes that the application creates its ownFrame. When running in the browser as an applet, the applet is the top level container that should hold the user interface for the application. A top-levelFrame is not needed.

Usecomponent-based architecture when designing your Java rich internet application. Try to organize its functionality into one or more components that can be composed together. In this context, the term "component" refers to a GUI element that is a subclass of the AWTComponent class, the SwingJComponent class, or another subclass. For example, you could have a top levelJPanel which contains other UI components in it (like a combination of more nested JPanels and text fields, combo boxes etc.). With such a design, it becomes relatively easy to deploy the core functionality as an applet or a Java Web Start application.

To deploy as a Java applet, you just need to wrap the core functionality in anApplet orJApplet and add the browser specific functionality, if necessary. To deploy as a Java Web Start application, wrap the functionality in aJFrame.

Choosing Between Java Applets and Java Web Start Applications

TheRich Internet Applications Decision Guide contains detailed information to help you decide whether to deploy your code as a Java applet or Java Web Start application.

The Self-Contained Application Alternative

Self-contained applications provide a deployment option that does not require a browser. Users install your application locally and run it similar to native applications. Self-contained applications include the JRE needed to run the application, so users always have the correct JRE.

This trail discusses the development and deployment of RIAs and self-contained applications. SeeWhat's New for capabilities introduced in various versions of the client Java Runtime Environment (JRE) software.

trail iconDeveloping and Deploying Java Applets

trail iconDeveloping and Deploying Java Web Start Applications

trail iconDoing More With Java Rich Internet Applications

trail iconDeployment In-Depth

trail iconDeploying Self-Contained Applications

Supporting Tools

trail iconPackaging Programs in JAR Files

« PreviousTOCNext »

About Oracle |Contact Us |Legal Notices |Terms of Use |Your Privacy Rights

Copyright © 1995, 2024 Oracle and/or its affiliates. All rights reserved.

Previous page: Beginning of Tutorial
Next page: Java Applets

[8]ページ先頭

©2009-2025 Movatter.jp