站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Tutorial 5.0 英文版

Practical Considerations When Writing Applets - Java Tutorial 5.0 英文版

The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Deployment
Lesson: Applets

Practical Considerations When Writing Applets

The first two sections in this lesson discussed all of the applet-specific API. However, most applets rely on a lot of API that isn't specific to applets. This section gives you hints about using the Java API, covering the areas that are affected by applets' close relationships with browsers.

Security Restrictions (in the Deployment trail)

This section lists the security restrictions that untrusted applets face. It also describes some ways to get around the restrictions.

Creating a User Interface (in the Deployment trail)

This section discusses the elements of an applet's UI. It then goes on to give hints for creating a GUI and creating debugging output using the standard output and standard error streams.

Getting System Properties (in the Deployment trail)

This section discusses the system properties that an applet can get to find out about its environment. It includes an example applet that displays the ten properties applets can get. It also lists some properties that applets typically can't get.

Threads in Applets (in the Deployment trail)

This section delves deeply into the issues of using threads in applets. A thread -- sometimes called an execution context or a lightweight process -- is a single sequential flow of control within a process. Even the simplest applets run in multiple threads, although it's not always apparent. Many applets create and use their own threads so that they perform well without affecting the performance of the browser they run in or the performance of other applets.

Working with a Server-Side Application  (in the Deployment trail)

This section shows how even untrusted applets can use networking code to communicate with programs running on the host from which they came.

Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.