|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Accessibility Many users who are visually impaired use screen readers to read HTML pages to them. Other people who have limited vision need to display text in large fonts in order to read the information comfortably. In the past, Sun has been criticized because Java applets displayed only a graphical image, inaccessible to visually impaired users. Sun has addressed these concerns by adding specific provisions for accessibility into the JDK. Youll use the new package java.awt.accessibility to ensure that your programs will work well with screen readers, screen magnifiers, and speech recognition systemsa group of hardware and software products collectively known as assistive technology.
Drag and Drop Sun has committed itself to supporting drag and drop data transfer between Java and native applications, as well as between Java applications and within a single Java application. JDK 1.2 is a first step in that direction. Currently, drag and drop between a Java application and a native application requires support from the native operating system. Sun has not added this capability to the Swing package because it is committed to making Swing 100% Pure Java. Application Services The term application services covers a range of capabilities that can be used by any member of the JFC. Sun has included eight new services for use by Java Foundation Classes:
JavaBeans EnhancementsJavaBeans is a specification that describes Java objects suitable for use in a visual development environment. If you drop a Bean into a JavaBeans-aware development environment, you can define its behavior by filling in a dialog box or connecting it with lines to other Beans.
Interaction with Applet Semantics In prior versions of the JDK, some conflicts occurred between applet and JavaBeans semantics. This problem made it difficult to use some Beans in an applet. These conflicts are fixed in JDK 1.2. Better Design-Time Support JDK 1.2 Beans are smarter than older Beansthey can send more information back and forth to the builder environment, enabling you to give them more sophisticated behavior. Beans Runtime Containment and Services Protocol JDK 1.2 Beans are better citizens than older Beans when the program is running. They can get more information from their context and can participate in an AWT presentation. CollectionsSun is gradually improving the set of collection classes shipped with the JDK. Version 1.2 includes seven concrete classes, as well as a variety of algorithms and abstract classes. When discussing collection classes its useful to know a bit about data structures. Table 36.1 summarizes the key characteristics of three important kinds of collection. These collections may be implemented in any of several data structures. A hash table is a highly efficient structure that can look up most items in one step. Large hash tables may require a significant amount of memory.
An array is an efficient structure, although it may be difficult to add or delete entries if youre also trying to preserve order. A tree structure maintains order naturally. One of the most common kinds of treea balanced binary treeis particularly efficient when you need fast lookup. The seven concrete classes are
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |